Skip to content

Commit 3dd6d59

Browse files
authored
test: Add Node 20 to CI matrix (#239)
1 parent 9bdc74a commit 3dd6d59

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node: [18, 20]
15+
continue-on-error: ${{ matrix.node == 20 }}
1216

1317
steps:
1418
- name: Checkout
1519
uses: actions/checkout@v3
1620
with:
1721
fetch-depth: 0
18-
- name: Setup Nodejs Env
19-
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
2022
- name: Setup Nodejs
21-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2224
with:
23-
node-version: ${{ env.NODE_VER }}
25+
node-version: ${{ matrix.node }}
2426
- name: Install dependencies
2527
run: npm ci --legacy-peer-deps
2628
- name: Lint

0 commit comments

Comments
 (0)