-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (47 loc) · 977 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
45
46
47
48
49
50
51
52
53
54
image: node:14
stages:
- test
- build
cache:
paths:
- build
- .yarn
- tsconfig.tsbuildinfo
include:
- template: Security/SAST.gitlab-ci.yml
lint:
stage: test
before_script:
- rm -rf dist
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
SAST_EXCLUDED_PATHS: build, node_modules
test:
stage: build
needs: [ lint ]
before_script:
- rm -rf dist
script:
- yarn --frozen-lockfile
- yarn test:coverage
artifacts:
reports:
junit: test-results.xml