Skip to content

chore: Update CI to run multiple versions of Node.js #485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
version: 0.2

env:
variables:
NODE_OPTIONS: "--max-old-space-size=4096"

phases:
install:
runtime-versions:
nodejs: 10
commands:
- npm ci --unsafe-perm
- npm run build
build:
commands:
- npm test
- npm run test_conditions
- npm run verdaccio
batch:
fast-fail: false
build-list:
- identifier: nodejs10
buildspec: codebuild/nodejs10.yml
- identifier: nodejs12
buildspec: codebuild/nodejs12.yml
18 changes: 18 additions & 0 deletions codebuild/nodejs10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 0.2

env:
variables:
NODE_OPTIONS: "--max-old-space-size=4096"

phases:
install:
runtime-versions:
nodejs: 10
commands:
- npm ci --unsafe-perm
- npm run build
build:
commands:
- npm test
- npm run test_conditions
- npm run verdaccio
18 changes: 18 additions & 0 deletions codebuild/nodejs12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 0.2

env:
variables:
NODE_OPTIONS: "--max-old-space-size=4096"

phases:
install:
runtime-versions:
nodejs: 12
commands:
- npm ci --unsafe-perm
- npm run build
build:
commands:
- npm test
- npm run test_conditions
- npm run verdaccio