aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 1e94ade69c8844fdb302f98ed633843b192d2cdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
image: node:16.13.1

cache:
  paths:
    - .yarn/cache/

stages:
  - code-quality
  - test
  - build

default:
  before_script:
    - yarn install --immutable

lint:
  stage: code-quality
  script:
    - yarn types
    - yarn lint:ci
  artifacts:
    reports:
      codequality: gl-codequality.json

typecheck:
  stage: code-quality
  script:
    - yarn types
    - yarn typecheck:ci

test:
  stage: test
  script:
    - yarn test

# TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts
build:
  stage: build
  script:
    - yarn compile
    # TODO: Need to publish the built distributable file
  artifacts:
    paths:
      - dist/
    exclude:
      - dist/builder-debug.yml
      - dist/builder-effective-config.yaml