-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
38 lines (33 loc) · 785 Bytes
/
.gitlab-ci.yml
File metadata and controls
38 lines (33 loc) · 785 Bytes
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
stages:
- build
- test
- publish
- ci_status
image: node:12.18.4
workflow:
rules:
- if: $CI_COMMIT_BRANCH
test:
stage: test
before_script:
- |
{
echo "@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_API_V4_URL}/packages/npm/"
} | tee --append .npmrc
- npm ci --cache .npm --prefer-offline
script:
- npm run test
include:
- project: telios2/telios-devops
ref: master
file: ".gitlab-ci.DiscordWebhook.yml"
- project: telios2/telios-devops
ref: master
file: ".gitlab-ci.NPMPublish.yml"
- template: Secret-Detection.gitlab-ci.yml
- template: SAST.gitlab-ci.yml
- template: License-Scanning.gitlab-ci.yml
- template: Dependency-Scanning.gitlab-ci.yml
publish:npm:
stage: publish
extends: .publish:npm