aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml35
1 files changed, 19 insertions, 16 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bf9461e..c522036 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,35 +2,38 @@ image: node:16.13.1
2 2
3cache: 3cache:
4 paths: 4 paths:
5 - node_modules/ 5 - .yarn/cache/
6 - .yarn/cache
7 6
8stages: 7stages:
8 - code-quality
9 - test 9 - test
10 - lint
11 - build 10 - build
12 11
13Run tests: 12default:
14 stage: test
15 before_script: 13 before_script:
16 - yarn install 14 - yarn install --immutable
15
16lint:
17 stage: code-quality
17 script: 18 script:
18 - yarn test 19 - yarn lint --format gitlab
20 artifacts:
21 reports:
22 codequality: gl-codequality.json
19 23
20Run linter and static analyzer: 24typecheck:
21 stage: lint 25 stage: code-quality
22 before_script:
23 - yarn install
24 script: 26 script:
25 - yarn dlx @yarnpkg/doctor
26 - yarn typecheck 27 - yarn typecheck
27 - yarn run lint 28
29test:
30 stage: test
31 script:
32 - yarn test
28 33
29# TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts 34# TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts
30Build the app: 35build:
31 stage: build 36 stage: build
32 before_script:
33 - yarn install
34 script: 37 script:
35 - yarn compile 38 - yarn compile
36 # TODO: Need to publish the built distributable file 39 # TODO: Need to publish the built distributable file