Skip to content

Commit 7ff4576

Browse files
authored
test(NODE-5254): use node 20 in actions (#13)
1 parent 004d33a commit 7ff4576

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ jobs:
7474
rustup target add aarch64-unknown-linux-musl &&
7575
npm run build -- --target aarch64-unknown-linux-musl &&
7676
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
77-
name: stable - ${{ matrix.settings.target }} - node@16
77+
name: stable - ${{ matrix.settings.target }} - node@20
7878
runs-on: ${{ matrix.settings.host }}
7979
steps:
8080
- uses: actions/checkout@v3
8181
- name: Setup node
8282
uses: actions/setup-node@v3
8383
with:
84-
node-version: 16
84+
node-version: 20
8585
check-latest: true
8686
cache: npm
8787
architecture: ${{ matrix.settings.architecture }}
@@ -152,6 +152,7 @@ jobs:
152152
- '14'
153153
- '16'
154154
- '18'
155+
- '20'
155156
runs-on: ${{ matrix.settings.host }}
156157
steps:
157158
- uses: actions/checkout@v3
@@ -190,6 +191,7 @@ jobs:
190191
- '14'
191192
- '16'
192193
- '18'
194+
- '20'
193195
runs-on: ubuntu-latest
194196
steps:
195197
- uses: actions/checkout@v2
@@ -228,6 +230,7 @@ jobs:
228230
- '14'
229231
- '16'
230232
- '18'
233+
- '20'
231234
runs-on: ubuntu-latest
232235
steps:
233236
- uses: actions/checkout@v3
@@ -266,6 +269,7 @@ jobs:
266269
- '14'
267270
- '16'
268271
- '18'
272+
- '20'
269273
runs-on: ubuntu-latest
270274
steps:
271275
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
@@ -285,11 +289,17 @@ jobs:
285289
key: npm-cache-test-linux-aarch64-gnu-${{ matrix.node }}-${{ hashFiles('package-lock.json') }}
286290
- name: Install dependencies
287291
run: npm clean-install --ignore-scripts
292+
- name: Set up QEMU
293+
uses: docker/setup-qemu-action@v2
294+
with:
295+
platforms: arm64
296+
- name: Run Emulator
297+
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
288298
- name: Setup and run tests
289299
uses: addnab/docker-run-action@v3
290300
with:
291-
image: ghcr.io/napi-rs/napi-rs/nodejs:aarch64-${{ matrix.node }}
292-
options: '-v ${{ github.workspace }}:/build -w /build'
301+
image: node:${{ matrix.node }}-slim
302+
options: '--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build'
293303
run: |
294304
set -e
295305
npm test

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ npm install @mongodb-js/zstd
1212

1313
## Support matrix
1414

15-
| | node12 | node14 | node16 | node18 |
16-
| ---------------- | ------ | ------ | ------ | ------ |
17-
| Windows x64 |||||
18-
| macOS x64 |||||
19-
| macOS arm64 |||||
20-
| Linux x64 gnu |||||
21-
| Linux arm gnu |||||
22-
| Linux arm64 gnu |||||
23-
| Linux x64 musl |||||
24-
| Linux arm64 musl |||||
15+
| | node12 | node14 | node16 | node18 | node20 |
16+
| ---------------- | ------ | ------ | ------ | ------ | ------ |
17+
| Windows x64 ||||||
18+
| macOS x64 ||||||
19+
| macOS arm64 ||||||
20+
| Linux x64 gnu ||||||
21+
| Linux arm gnu ||||||
22+
| Linux arm64 gnu ||||||
23+
| Linux x64 musl ||||||
24+
| Linux arm64 musl ||||||
2525

2626
## API
2727

0 commit comments

Comments
 (0)