aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-01-03 20:24:43 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-01-03 20:24:43 +0530
commitaa51567b7357956238d9b0e599d12d98a99bc05f (patch)
tree9e17d86766bc9f5f4839ed44f68d43f3ed86c55a
parentchore: Add .yarn/sdks to .gitignore (diff)
downloadsophie-aa51567b7357956238d9b0e599d12d98a99bc05f.tar.gz
sophie-aa51567b7357956238d9b0e599d12d98a99bc05f.tar.zst
sophie-aa51567b7357956238d9b0e599d12d98a99bc05f.zip
Basic CI pipeline using Gitlab CI
Signed-off-by: Vijay A <vraravam@users.noreply.github.com>
-rw-r--r--.gitlab-ci.yml40
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 @@
1image: node:16.13.1
2
3cache:
4 paths:
5 - node_modules/
6 - .yarn/cache
7
8stages:
9 - test
10 - lint
11 - build
12
13Run tests:
14 stage: test
15 before_script:
16 - yarn install
17 script:
18 - yarn test
19
20Run 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
28Build 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