Skip to content

Commit fb83b3e

Browse files
authored
Merge pull request #3 from ai/node22
Add Node.js 22 to CI
2 parents 82ecc77 + e072a63 commit fb83b3e

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
node-version:
15-
- 21
15+
- 22
1616
- 20
1717
- 18
1818
name: Node.js ${{ matrix.node-version }} Quick
@@ -45,7 +45,7 @@ jobs:
4545
- name: Install Node.js LTS
4646
uses: actions/setup-node@v4
4747
with:
48-
node-version: 20
48+
node-version: 22
4949
cache: pnpm
5050
- name: Install dependencies
5151
run: pnpm install --ignore-scripts

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"scripts": {
3131
"test:lint": "eslint .",
3232
"test:help": "node bin.js --help | node test/find.js Usage",
33-
"test:only": "node bin.js -t two | node test/find.js 'skipped 2'",
34-
"test:pathless": "node bin.js | node test/find.js 'tests 3'",
35-
"test:path": "node bin.js test/*.test.js | node test/find.js 'tests 1'",
33+
"test:only": "node bin.js -t two | node test/find.js 'pass 3'",
34+
"test:pathless": "node bin.js | node test/find.js 'tests 6'",
35+
"test:path": "node bin.js test/*.test.js | node test/find.js 'tests 2'",
3636
"test": "pnpm run /^test:/"
3737
},
3838
"devDependencies": {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { equal } from 'node:assert'
22
import { test } from 'node:test'
33

4+
test('one', () => {
5+
equal(1, 1)
6+
})
7+
48
test('two', () => {
59
equal(2, 2)
610
})

test/one.spec.js renamed to test/foo.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ import { test } from 'node:test'
44
test('one', () => {
55
equal(1, 1)
66
})
7+
8+
test('two', () => {
9+
equal(2, 2)
10+
})

test/one.test.js renamed to test/foo.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ import { test } from 'node:test'
44
test('one', () => {
55
equal(1, 1)
66
})
7+
8+
test('two', () => {
9+
equal(2, 2)
10+
})

0 commit comments

Comments
 (0)