diff options
-rw-r--r-- | .gitlab-ci.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c15154c --- /dev/null +++ b/.gitlab-ci.yml | |||
@@ -0,0 +1,40 @@ | |||
1 | image: node:16.13.1 | ||
2 | |||
3 | cache: | ||
4 | paths: | ||
5 | - node_modules/ | ||
6 | - .yarn/cache | ||
7 | |||
8 | stages: | ||
9 | - test | ||
10 | - lint | ||
11 | - build | ||
12 | |||
13 | Run tests: | ||
14 | stage: test | ||
15 | before_script: | ||
16 | - yarn install | ||
17 | script: | ||
18 | - yarn test | ||
19 | |||
20 | Run linter and static analyzer: | ||
21 | stage: lint | ||
22 | before_script: | ||
23 | - yarn install | ||
24 | script: | ||
25 | - yarn typecheck | ||
26 | |||
27 | # TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts | ||
28 | Build the app: | ||
29 | stage: build | ||
30 | before_script: | ||
31 | - yarn install | ||
32 | script: | ||
33 | - yarn compile | ||
34 | # TODO: Need to publish the built distributable file | ||
35 | artifacts: | ||
36 | paths: | ||
37 | - dist/ | ||
38 | exclude: | ||
39 | - dist/builder-debug.yml | ||
40 | - dist/builder-effective-config.yaml | ||