Skip to content

Commit 6fcf69c

Browse files
committed
matrix testing for node versions
1 parent 87bc4d3 commit 6fcf69c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ jobs:
1111
tests:
1212
name: Tests
1313
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
# https://github.com/nodejs/Release#release-schedule
17+
node: [ 14, 16, 18, 19 ]
1418
steps:
1519
- uses: actions/checkout@v3
1620
- uses: actions/setup-node@v3
1721
with:
18-
node-version: '16.x'
22+
node-version: ${{ matrix.node }}
1923
- name: "Run tests"
2024
env:
2125
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
@@ -35,7 +39,8 @@ jobs:
3539
# Setup .npmrc file to publish to npm
3640
- uses: actions/setup-node@v3
3741
with:
38-
node-version: '16.x'
42+
# latest lts
43+
node-version: 18
3944
registry-url: 'https://registry.npmjs.org'
4045
- run: npm ci && npm run build
4146
- run: npm publish

0 commit comments

Comments
 (0)