Skip to content

Commit 64e5a4f

Browse files
committed
Lint and test on several node versions
1 parent 0faf792 commit 64e5a4f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,29 @@ on:
1515
jobs:
1616
lint:
1717
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node_version: [ 22, 24 ]
1821
steps:
1922
- uses: actions/checkout@v3
20-
- name: Use Node.js
23+
- name: Use Node.js ${{ matrix.node_version }}
2124
uses: actions/setup-node@v3
2225
with:
23-
node-version-file: .node-version
26+
node-version: ${{ matrix.node_version }}
2427
- run: yarn --frozen-lockfile
2528
- run: yarn lint
2629

2730
test:
2831
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
node_version: [ 22, 24 ]
2935
steps:
3036
- uses: actions/checkout@v3
31-
- name: Use Node.js
37+
- name: Use Node.js ${{ matrix.node_version }}
3238
uses: actions/setup-node@v3
3339
with:
34-
node-version-file: .node-version
40+
node-version: ${{ matrix.node_version }}
3541
- uses: actions-rs/toolchain@v1
3642
with:
3743
toolchain: stable

0 commit comments

Comments
 (0)