From 88d32723e4857e797b8faeb9a30050d9dfa146a4 Mon Sep 17 00:00:00 2001 From: seebees Date: Fri, 11 Dec 2020 09:35:19 -0800 Subject: [PATCH] chore: Update CI to run multiple versions of Node.js Update buildspec to batch build to run multiple Node.js runtime versions * Node.js 10 * Node.js 12 --- buildspec.yml | 23 +++++++---------------- codebuild/nodejs10.yml | 18 ++++++++++++++++++ codebuild/nodejs12.yml | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+), 16 deletions(-) create mode 100644 codebuild/nodejs10.yml create mode 100644 codebuild/nodejs12.yml diff --git a/buildspec.yml b/buildspec.yml index 1e42729c4..9026793bc 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -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 diff --git a/codebuild/nodejs10.yml b/codebuild/nodejs10.yml new file mode 100644 index 000000000..1e42729c4 --- /dev/null +++ b/codebuild/nodejs10.yml @@ -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 diff --git a/codebuild/nodejs12.yml b/codebuild/nodejs12.yml new file mode 100644 index 000000000..6c87b53fa --- /dev/null +++ b/codebuild/nodejs12.yml @@ -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