Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit 542ae85

Browse files
committed
Add action with multiple node versions
1 parent d526cff commit 542ae85

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ on:
99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node: [ 16, 18, 20 ]
1215
steps:
1316
- uses: actions/checkout@v3
1417
- uses: actions/setup-node@v3
1518
with:
16-
node-version: '16'
17-
- name: Install dependencies
19+
node-version: ${{ matrix.node }}
20+
- name: Install dependencies on ${{ matrix.node }}
1821
run: npm install --ci
19-
- name: Lint
22+
- name: Lint on ${{ matrix.node }}
2023
run: npm run lint
21-
- name: Check if project builds
24+
- name: Check if project builds on ${{ matrix.node }}
2225
run: npm run build

0 commit comments

Comments
 (0)