Skip to content

Commit 63885fd

Browse files
committed
feat: update workflow to support multiple Node.js versions
1 parent 9e1a5ba commit 63885fd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
name: Run tests and upload coverage
22

3-
on:
3+
on:
44
push
55

66
jobs:
77
test:
88
name: Run tests and collect coverage
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [18, 20, 22, 24]
1013
steps:
1114
- name: Checkout
1215
uses: actions/checkout@v4
1316
with:
1417
fetch-depth: 2
1518

16-
- name: Set up Node
19+
- name: Set up Node ${{ matrix.node-version }}
1720
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
1823

1924
- name: Install dependencies
2025
run: npm install

0 commit comments

Comments
 (0)