Skip to content

Commit 0309e80

Browse files
committed
ci: add multiple LTS Node.js versions testing
- Add multiple LTS versions testing strategy with Node.js `18`, `20` and `22`. - Update job name to show Node.js version being tested. For LTS versions, to visit https://nodejs.org/en/about/previous-releases#nodejs-releases
1 parent 26f4597 commit 0309e80

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,23 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7+
name: Node.js ${{ matrix.node-version }}
78
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node-version:
12+
- 22
13+
- 20
14+
- 18
15+
816
steps:
917
- name: Checkout code
1018
uses: actions/checkout@v4
1119

1220
- name: Install nodejs
1321
uses: actions/setup-node@v4
1422
with:
15-
node-version: 20.x
23+
node-version: ${{ matrix.node-version }}
1624

1725
- name: Run tests
1826
run: |

0 commit comments

Comments
 (0)