-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
47 lines (39 loc) · 878 Bytes
/
.gitlab-ci.yml
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
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/node:16.17.1
variables:
YARN_CACHE_FOLDER: .yarn
.default:
cache:
key: ${CI_COMMIT_REF_SLUG}
paths: [ node_modules/, .yarn ]
policy: pull
yarn:
extends: .default
stage: build
interruptible: true
before_script:
- eval "$INSTALL_NPM_REGISTRY_CI"
script:
- yarn install
- cp .env.example .env
cache:
policy: pull-push
artifacts:
expire_in: 1 day
paths: [ node_modules/, .env ]
build-tester:
extends: .default
stage: test
interruptible: true
dependencies: [ yarn ]
script:
- yarn build --fail-on-error
qa-checker:
image: registery.code14.nl/code14/innovation/code14-cli:latest
stage: test
dependencies: [ yarn ]
interruptible: true
artifacts:
reports:
codequality: [ "qa-gitlab-report.json" ]
script:
- code14-cli qa --report --ci