Skip to content

Commit 08a60d3

Browse files
authored
ci: add Node 22 to run matrix
1 parent 6131883 commit 08a60d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pull-request.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
node: [14, 16, 18, 20]
11+
node: [14, 16, 18, 20, 22]
1212
name: Node ${{ matrix.node }}
1313
steps:
1414
- name: 'Checkout latest code'
@@ -20,8 +20,8 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node }}
2222
cache: 'npm'
23-
- name: Install NPM
24-
run: npm install -g npm@9
23+
- name: Install NPM (if node 14)
24+
run: if [ "${{ matrix.node }}" == "14" ]; then npm install -g npm@9; fi
2525
- name: Install dependencies
2626
run: npm ci
2727
- name: Run tests

0 commit comments

Comments
 (0)