-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
84 lines (72 loc) · 1.26 KB
/
.gitlab-ci.yml
File metadata and controls
84 lines (72 loc) · 1.26 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
image: node:20
include:
- template: Security/Secret-Detection.gitlab-ci.yml
stages:
- test
- security
cache:
paths:
- node_modules/
- .pnpm-store/
.node-setup: &node-setup
before_script:
- corepack enable
- corepack prepare pnpm@10 --activate
- pnpm config set store-dir .pnpm-store
- pnpm install --frozen-lockfile
format:
<<: *node-setup
stage: test
script:
- pnpm run format:check
lint:
<<: *node-setup
stage: test
script:
- pnpm run lint
typecheck:
<<: *node-setup
stage: test
script:
- pnpm run typecheck
test:
<<: *node-setup
stage: test
script:
- pnpm run test:coverage
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
artifacts:
paths:
- coverage/
expire_in: 1 hour
build:
<<: *node-setup
stage: test
script:
- pnpm run build
- test -d dist
security:
<<: *node-setup
stage: test
script:
- pnpm audit --prod --audit-level=moderate
mutation:
<<: *node-setup
stage: test
needs: [test]
script:
- pnpm run mutation
artifacts:
paths:
- reports/mutation/
expire_in: 1 week
when: always
sbom:
<<: *node-setup
stage: security
script:
- pnpm run sbom
artifacts:
paths:
- sbom.cdx.json
expire_in: 1 week