Skip to content

Commit 0be463d

Browse files
committed
test code with all supported Node versions
1 parent 9b560bc commit 0be463d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ name: Test Package
22

33
on: push
44

5-
env:
6-
NODE_VERSION: 20
7-
85
jobs:
96
test:
107
runs-on: ubuntu-22.04
118
timeout-minutes: 15
9+
strategy:
10+
matrix:
11+
node_version: [16, 18, 20]
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: aboutbits/github-actions-node/setup-and-install@v2
1515
with:
16-
node-version: ${{ env.NODE_VERSION }}
16+
node-version: ${{ matrix.node_version }}
1717
- run: npm run lint
1818
- run: npm run typecheck
1919
- run: npm run test

0 commit comments

Comments
 (0)