Skip to content

feat!: Test & Support only latest NodeJS #1178

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

Closed
wants to merge 2 commits into from
Closed
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
32 changes: 18 additions & 14 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,46 @@ version: 0.2
batch:
fast-fail: false
build-list:
- identifier: testNodejsLatest
buildspec: codebuild/nodejs_latest.yml
- identifier: testNodejs20
buildspec: codebuild/nodejs20.yml
env:
image: aws/codebuild/standard:5.0
- identifier: testNodejs14
buildspec: codebuild/nodejs14.yml
- identifier: testNodejs18
buildspec: codebuild/nodejs18.yml
env:
image: aws/codebuild/standard:5.0
- identifier: testNodejs16
buildspec: codebuild/nodejs16.yml
env:
image: aws/codebuild/standard:5.0
- identifier: testBrowser
buildspec: codebuild/browser.yml
- identifier: testBrowser18
buildspec: codebuild/browser18.yml
env:
image: aws/codebuild/standard:5.0
- identifier: compliance
buildspec: codebuild/compliance.yml
env:
image: aws/codebuild/standard:5.0
- identifier: testVectorsNodejsLatest
buildspec: codebuild/test_vectors/nodejs_latest.yml
- identifier: testVectorsNodejs16
buildspec: codebuild/test_vectors/nodejs16.yml
env:
variables:
PUBLISH_LOCAL: "true"
image: aws/codebuild/standard:5.0
- identifier: testVectorsNodejs14
buildspec: codebuild/test_vectors/nodejs14.yml
- identifier: testVectorsNodejs18
buildspec: codebuild/test_vectors/nodejs18.yml
env:
variables:
PUBLISH_LOCAL: "true"
image: aws/codebuild/standard:5.0
- identifier: testVectorsNodejs16
buildspec: codebuild/test_vectors/nodejs16.yml
- identifier: testVectorsNodejs20
buildspec: codebuild/test_vectors/nodejs20.yml
env:
variables:
PUBLISH_LOCAL: "true"
image: aws/codebuild/standard:5.0
- identifier: testVectorsBrowser
buildspec: codebuild/test_vectors/browser.yml
- identifier: testVectorsBrowser18
buildspec: codebuild/test_vectors/browser18.yml
env:
variables:
PUBLISH_LOCAL: "true"
Expand Down
File renamed without changes.
7 changes: 5 additions & 2 deletions codebuild/nodejs14.yml → codebuild/nodejs18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ env:

phases:
install:
runtime-versions:
nodejs: 14
commands:
- n 18
- node -v
- npm -v
- npm ci --unsafe-perm
- npm run build
build:
commands:
- npm -v
- node -v
- npm run coverage-node
2 changes: 1 addition & 1 deletion codebuild/nodejs_latest.yml → codebuild/nodejs20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
phases:
install:
commands:
- n 18
- n 20
- node --version ; npm --version
- npm ci --unsafe-perm
- npm run build
Expand Down
28 changes: 14 additions & 14 deletions codebuild/release/prod-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ batch:
buildspec: codebuild/compliance.yml

# Unit Tests
- identifier: testNodejsLatest
buildspec: codebuild/nodejs_latest.yml
- identifier: testNodejs20
buildspec: codebuild/nodejs20.yml
env:
image: aws/codebuild/standard:5.0
- identifier: testBrowser
buildspec: codebuild/browser.yml
- identifier: testBrowser18
buildspec: codebuild/browser18.yml

# Integration Tests
- identifier: testVectorsNodejsLatest
buildspec: codebuild/test_vectors/nodejs_latest.yml
- identifier: testVectorsNodejs20
buildspec: codebuild/test_vectors/nodejs20.yml
env:
variables:
PUBLISH_LOCAL: "true"
image: aws/codebuild/standard:5.0
- identifier: testVectorsBrowser
buildspec: codebuild/test_vectors/browser.yml
- identifier: testVectorsBrowser18
buildspec: codebuild/test_vectors/browser18.yml
env:
variables:
PUBLISH_LOCAL: "true"
Expand All @@ -34,10 +34,10 @@ batch:
- identifier: version
depend-on:
- compliance
- testNodejsLatest
- testBrowser
- testVectorsNodejsLatest
- testVectorsBrowser
- testNodejs20
- testBrowser18
- testVectorsNodejs20
- testVectorsBrowser18
buildspec: codebuild/release/version.yml

# Publish the release to npm
Expand All @@ -50,15 +50,15 @@ batch:
- identifier: validateNodejs
depend-on:
- publish
buildspec: codebuild/test_vectors/nodejs_latest.yml
buildspec: codebuild/test_vectors/nodejs20.yml
env:
variables:
PUBLISH_LOCAL: "false"
image: aws/codebuild/standard:5.0
- identifier: validateBrowser
depend-on:
- publish
buildspec: codebuild/test_vectors/browser.yml
buildspec: codebuild/test_vectors/browser18.yml
env:
variables:
PUBLISH_LOCAL: "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ phases:
install:
commands:
- n 18
- npm ci
- npm ci --unsafe-perm
- |-
if [ "$PUBLISH_LOCAL" = "true" ]; then
npm run build
Expand Down
19 changes: 0 additions & 19 deletions codebuild/test_vectors/nodejs12.yml

This file was deleted.

19 changes: 0 additions & 19 deletions codebuild/test_vectors/nodejs14.yml

This file was deleted.

13 changes: 8 additions & 5 deletions codebuild/test_vectors/nodejs16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ phases:
install:
commands:
- n 16
- node -v
- npm -v
- npm ci --unsafe-perm
- npm run build
- |-
if [ "$PUBLISH_LOCAL" = "true" ]; then
npm run build
fi
build:
commands:
- npm -v
- node -v
- npm run verdaccio-publish
- |-
if [ "$PUBLISH_LOCAL" = "true" ]; then
npm run verdaccio-publish
fi
- npm run verdaccio-node-decrypt
- npm run verdaccio-node-encrypt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ phases:
install:
commands:
- n 18
- npm ci
- npm ci --unsafe-perm
- |-
if [ "$PUBLISH_LOCAL" = "true" ]; then
npm run build
fi
build:
commands:
- node -v
- |-
if [ "$PUBLISH_LOCAL" = "true" ]; then
npm run verdaccio-publish
Expand Down
25 changes: 25 additions & 0 deletions codebuild/test_vectors/nodejs20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 0.2

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

phases:
install:
commands:
- n 20
- npm ci --unsafe-perm
- |-
if [ "$PUBLISH_LOCAL" = "true" ]; then
npm run build
fi
build:
commands:
- node -v
- |-
if [ "$PUBLISH_LOCAL" = "true" ]; then
npm run verdaccio-publish
fi
- npm run verdaccio-node-decrypt
- npm run verdaccio-node-encrypt