Skip to content

Commit b09fd78

Browse files
authored
chore: Update CI to run multiple versions of Node.js (#485)
Update buildspec to batch build to run multiple Node.js runtime versions * Node.js 10 * Node.js 12
1 parent 3cd4663 commit b09fd78

File tree

3 files changed

+43
-16
lines changed

3 files changed

+43
-16
lines changed

buildspec.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
version: 0.2
22

3-
env:
4-
variables:
5-
NODE_OPTIONS: "--max-old-space-size=4096"
6-
7-
phases:
8-
install:
9-
runtime-versions:
10-
nodejs: 10
11-
commands:
12-
- npm ci --unsafe-perm
13-
- npm run build
14-
build:
15-
commands:
16-
- npm test
17-
- npm run test_conditions
18-
- npm run verdaccio
3+
batch:
4+
fast-fail: false
5+
build-list:
6+
- identifier: nodejs10
7+
buildspec: codebuild/nodejs10.yml
8+
- identifier: nodejs12
9+
buildspec: codebuild/nodejs12.yml

codebuild/nodejs10.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
NODE_OPTIONS: "--max-old-space-size=4096"
6+
7+
phases:
8+
install:
9+
runtime-versions:
10+
nodejs: 10
11+
commands:
12+
- npm ci --unsafe-perm
13+
- npm run build
14+
build:
15+
commands:
16+
- npm test
17+
- npm run test_conditions
18+
- npm run verdaccio

codebuild/nodejs12.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
NODE_OPTIONS: "--max-old-space-size=4096"
6+
7+
phases:
8+
install:
9+
runtime-versions:
10+
nodejs: 12
11+
commands:
12+
- npm ci --unsafe-perm
13+
- npm run build
14+
build:
15+
commands:
16+
- npm test
17+
- npm run test_conditions
18+
- npm run verdaccio

0 commit comments

Comments
 (0)