-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
59 lines (48 loc) · 1.28 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
image: node13
cache:
paths:
- node_modules
before_script:
- yarn config set registry https://npm.open-registry.dev
- yarn install --frozen-lockfile
stages:
- verify
- release
quality:
stage: verify
image: docker:stable
variables:
DOCKER_DRIVER: overlay1
services:
- docker:stable-dind
script:
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > quality.json
artifacts:
reports:
codequality: quality.json
test:
stage: verify
script:
- yarn test --reporter mocha-junit-reporter
artifacts:
reports:
junit: test-results.xml
coverage:
stage: verify
script:
- node_modules/.bin/c8 --lines 80 --functions 80 --branches 80 --exclude tests --exclude coverage --reporter=text --reporter=cobertura yarn test --reporter min
artifacts:
reports:
cobertura: coverage/cobertura-coverage.xml
dependency_check:
stage: verify
script:
- yarn depcheck
# waiting on request https://github.com/keytelematics/gitlab-ci-yarn-audit-parser/issues/4
# artifacts:
# reports:
# dependency_scanning: gl-dependency-scanning-report.json
lint👽:
stage: verify
script:
- yarn lint