-
-
Notifications
You must be signed in to change notification settings - Fork 483
/
.gitlab-ci.yml
54 lines (47 loc) · 1.27 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
stages:
- build
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm/
- node_modules/
- packages/
- ~/.pnpm-store
.build_template: &build_template
variables:
KUBERNETES_CPU_REQUEST: 4
KUBERNETES_CPU_LIMIT: 4
KUBERNETES_MEMORY_REQUEST: 4Gi
KUBERNETES_MEMORY_LIMIT: 4Gi
stage: build
before_script:
- npm install -g pnpm@7
- pnpm config set store-dir `pwd`/.pnpm-store
- pnpm recursive install --frozen-lockfile=false
script:
- pnpm run consistency
- pnpm run build
- pnpm run pretest
- node ${SECURITY_OPTIONS} packages/parallel_test.js
# - node packages/run_all_mocha_tests.js DISCO3
build_and_test_node_16:
<<: *build_template
variables:
SECURITY_OPTIONS: ""
image: node:16
## https://nodejs.org/en/about/previous-releases
build_and_test_node_18:
<<: *build_template
variables:
SECURITY_OPTIONS: "--security-revert=CVE-2023-46809"
image: node:18
build_and_test_node_20:
<<: *build_template
variables:
SECURITY_OPTIONS: "--security-revert=CVE-2023-46809"
image: node:20
# build_and_test_node_21:
# <<: *build_template
# variables:
# SECURITY_OPTIONS: --security-revert=CVE-2023-46809
# image: node:21