-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
138 lines (126 loc) · 2.49 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
image: node:latest
stages:
- test
- build
cache:
paths:
- node_modules/
- ".yarn"
- build
- tsconfig.tsbuildinfo
variables:
POSTGRES_DB: expresso
POSTGRES_PASSWORD: expresso
POSTGRES_HOST_AUTH_METHOD: trust
include:
- template: Dependency-Scanning.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml
- template: Security/License-Scanning.gitlab-ci.yml
lint:
stage: test
allow_failure: true
script:
- yarn --frozen-lockfile
- yarn lint --format gitlab
artifacts:
paths:
- gl-codequality.json
reports:
codequality: gl-codequality.json
audit:
stage: test
script:
- npx gitlab-ci-yarn-audit-parser
artifacts:
reports:
dependency_scanning: gl-dependency-scanning-report.json
sast:
stage: test
variables:
SAST_EXCLUDED_ANALYZERS: bandit, brakeman, flawfinder, gosec, kubesec, phpcs-security-audit,
pmd-apex, security-code-scan, sobelow, spotbugs
test-node-10:
stage: build
image: node:10
needs: [ lint ]
services:
- postgres
before_script:
- yarn
- cp $CI_ORM_CONFIG ormconfig.json
script:
- yarn test:coverage
artifacts:
reports:
junit:
- test-results.xml
cobertura:
- coverage/cobertura-coverage.xml
test-node-12:
stage: build
image: node:12
needs: [ lint ]
services:
- postgres
before_script:
- yarn
- cp $CI_ORM_CONFIG ormconfig.json
script:
- yarn test:coverage
artifacts:
reports:
junit:
- test-results.xml
cobertura:
- coverage/cobertura-coverage.xml
test-node-13:
stage: build
image: node:13
needs: [ lint ]
services:
- postgres
before_script:
- yarn
- cp $CI_ORM_CONFIG ormconfig.json
script:
- yarn test:coverage
artifacts:
reports:
junit:
- test-results.xml
cobertura:
- coverage/cobertura-coverage.xml
test-node-14:
stage: build
image: node:14
needs: [ lint ]
services:
- postgres
before_script:
- yarn
- cp $CI_ORM_CONFIG ormconfig.json
script:
- yarn test:coverage
artifacts:
reports:
junit:
- test-results.xml
cobertura:
- coverage/cobertura-coverage.xml
test-node-15:
stage: build
image: node:15
needs: [ lint ]
services:
- postgres
before_script:
- yarn
- cp $CI_ORM_CONFIG ormconfig.json
script:
- yarn test:coverage
artifacts:
reports:
junit:
- test-results.xml
cobertura:
- coverage/cobertura-coverage.xml