Skip to content

Commit f437aea

Browse files
committed
ci: update
1 parent 89abb97 commit f437aea

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/test.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ jobs:
2525
- uses: actions/setup-node@v4
2626
with:
2727
node-version: ${{ matrix.node }}
28-
- name: install
29-
run: npm install
3028

3129
- name: npm ci
3230
run: npm ci --ignore-scripts
3331

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

package.json

+2-3
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": {
@@ -69,9 +70,7 @@
6970
],
7071
"concurrency": 5,
7172
"timeout": "25s",
72-
"nodeArguments": [
73-
"--no-experimental-detect-module"
74-
]
73+
"nodeArguments": []
7574
},
7675
"nyc": {
7776
"exclude": [

0 commit comments

Comments
 (0)