diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-08 21:36:43 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 19:53:03 +0100 |
commit | d07e7b834831230b53860d0919a68edc2d36193d (patch) | |
tree | a1f2a021563ddff54f33341c475fc6c6eb787388 /.gitlab-ci.yml | |
parent | New configurations based on review comments (WIP) (diff) | |
download | sophie-d07e7b834831230b53860d0919a68edc2d36193d.tar.gz sophie-d07e7b834831230b53860d0919a68edc2d36193d.tar.zst sophie-d07e7b834831230b53860d0919a68edc2d36193d.zip |
build: Eslint fixes for multi-module project
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 35 |
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 | ||
3 | cache: | 3 | cache: |
4 | paths: | 4 | paths: |
5 | - node_modules/ | 5 | - .yarn/cache/ |
6 | - .yarn/cache | ||
7 | 6 | ||
8 | stages: | 7 | stages: |
8 | - code-quality | ||
9 | - test | 9 | - test |
10 | - lint | ||
11 | - build | 10 | - build |
12 | 11 | ||
13 | Run tests: | 12 | default: |
14 | stage: test | ||
15 | before_script: | 13 | before_script: |
16 | - yarn install | 14 | - yarn install --immutable |
15 | |||
16 | lint: | ||
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 | ||
20 | Run linter and static analyzer: | 24 | typecheck: |
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 | |
29 | test: | ||
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 |
30 | Build the app: | 35 | build: |
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 |