Skip to content

Commit 34a6a84

Browse files
committed
fix: run lint only on Node 22 (ESLint 10 requires util.styleText)
1 parent 29a9a3a commit 34a6a84

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@ on:
77
branches: [main]
88

99
jobs:
10-
check:
10+
lint:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
node-version: [18, 20, 22]
15-
1612
steps:
1713
- uses: actions/checkout@v4
1814

1915
- uses: actions/setup-node@v4
2016
with:
21-
node-version: ${{ matrix.node-version }}
17+
node-version: 22
2218
cache: npm
2319

2420
- run: npm ci
@@ -29,6 +25,22 @@ jobs:
2925
- name: Typecheck
3026
run: npm run typecheck
3127

28+
test:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
node-version: [18, 20, 22]
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- uses: actions/setup-node@v4
38+
with:
39+
node-version: ${{ matrix.node-version }}
40+
cache: npm
41+
42+
- run: npm ci
43+
3244
- name: Test
3345
run: npm test
3446

0 commit comments

Comments
 (0)