Skip to content

Commit fa4f57f

Browse files
authored
test: update node versions in tests (#210)
1 parent c528b97 commit fa4f57f

File tree

6 files changed

+14
-27
lines changed

6 files changed

+14
-27
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ jobs:
88
test-linux:
99
runs-on: ubuntu-latest
1010
strategy:
11+
fail-fast: false
1112
matrix:
12-
node: [ 10, 12, 14, 15, 16]
13+
node: [ 12, 14, 16, 17, 18 ]
1314
steps:
1415
- uses: actions/checkout@v3
1516
- uses: actions/setup-node@v3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"delay": "^5.0.0",
3434
"findit2": "^2.2.3",
3535
"nan": "^2.14.0",
36-
"@mapbox/node-pre-gyp": "^1.0.0",
36+
"@mapbox/node-pre-gyp": "^1.0.9",
3737
"p-limit": "^3.0.0",
3838
"pify": "^5.0.0",
3939
"protobufjs": "~6.11.0",

system-test/Dockerfile.node15-alpine

Lines changed: 0 additions & 14 deletions
This file was deleted.

system-test/Dockerfile.node10-alpine renamed to system-test/Dockerfile.node17-alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /root/
44
RUN go get github.com/google/pprof
55

66

7-
FROM node:10-alpine
7+
FROM node:17-alpine
88

99
ARG ADDITIONAL_PACKAGES
1010

system-test/system_test.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ set -eox pipefail
1010

1111
cd $(dirname $0)
1212

13+
# The list of tested versions below should be in sync with node's
14+
# official releases. https://nodejs.org/en/about/releases/
1315
if [[ -z "$BINARY_HOST" ]]; then
1416
ADDITIONAL_PACKAGES="python3 g++ make"
15-
NODE_VERSIONS=(10 12 14 15 16 node)
17+
NODE_VERSIONS=(12 14 16 17 18 node)
1618
else
17-
NODE_VERSIONS=(10 12 14 15 16)
19+
# Tested versions for pre-built binaries are limited based on
20+
# what node-pre-gyp can specify as its target version.
21+
NODE_VERSIONS=(12 14 16 17)
1822
fi
1923

2024
for i in ${NODE_VERSIONS[@]}; do
@@ -26,13 +30,9 @@ for i in ${NODE_VERSIONS[@]}; do
2630
docker run -v $PWD/..:/src -e BINARY_HOST="$BINARY_HOST" node$i-linux \
2731
/src/system-test/test.sh
2832

29-
# Test support for accurate line numbers with node versions supporting this
30-
# feature.
31-
if [ "$i" != "10" ]; then
32-
docker run -v $PWD/..:/src -e BINARY_HOST="$BINARY_HOST" \
33-
-e VERIFY_TIME_LINE_NUMBERS="true" node$i-linux \
34-
/src/system-test/test.sh
35-
fi
33+
docker run -v $PWD/..:/src -e BINARY_HOST="$BINARY_HOST" \
34+
-e VERIFY_TIME_LINE_NUMBERS="true" node$i-linux \
35+
/src/system-test/test.sh
3636

3737
# Test Alpine support for the given node version.
3838
retry docker build -f Dockerfile.node$i-alpine \

tools/build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mkdir -p "$ARTIFACTS_OUT"
2828

2929
npm install --quiet
3030

31-
for version in 10.0.0 12.0.0 14.0.0 15.0.0 16.0.0
31+
for version in 12.0.0 14.0.0 16.0.0 17.0.1
3232
do
3333
./node_modules/.bin/node-pre-gyp configure rebuild package \
3434
--target=$version --target_arch="x64"

0 commit comments

Comments
 (0)