Skip to content

Commit 6343f29

Browse files
authored
ci: test on Node.js 22 (#301)
1 parent ea6cd93 commit 6343f29

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/test.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest]
20-
node: [14, 16, 18, 20]
20+
node: [14, 16, 18, 20, 22]
2121
steps:
2222
- uses: actions/checkout@v4
2323
with:
@@ -30,4 +30,9 @@ jobs:
3030
run: npm ci --ignore-scripts
3131

3232
- name: test
33-
run: npm test
33+
run: |
34+
if [ "${{ matrix.node }}" == "22" ]; then
35+
npm run test:node22
36+
else
37+
npm test
38+
fi

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"lintfix": "eslint --fix src",
4040
"report": "nyc report --reporter=html",
4141
"test": "nyc ava src/__tests__/*.mjs",
42+
"test:node22": "nyc ava src/__tests__/*.mjs --node-arguments=--no-experimental-detect-module",
4243
"testone": "ava"
4344
},
4445
"dependencies": {

0 commit comments

Comments
 (0)