Newer
Older
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
56
57
58
59
60
61
62
63
64
65
image: node:20-slim
stages:
- install
- lint_and_format
- build
- test
- security_scan
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
install:
stage: install
script:
- npm install
artifacts:
paths:
- node_modules/
format-code:
stage: lint_and_format
script:
- npm run format-test
lint-code:
stage: lint_and_format
script:
- npm run lint
type-check:
stage: build
script:
- npm run type-check
- npm run build
unit-tests:
stage: test
script:
- npm run test:unit
test:e2e:
image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
stage: test
script:
- npm ci --cache .npm --prefer-offline
- npx cypress verify
- npm run test:e2e
dependencies:
- install
test-coverage:
stage: test
script:
- npm run test:coverage
include:
- template: SAST.gitlab-ci.yml
sast:
stage: security_scan
script:
- echo "Running SAST..."