Skip to content

Commit 479728c

Browse files
committed
matrix testing for node versions
1 parent 87bc4d3 commit 479728c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/tests.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@ 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 ]
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 }}
2226
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
2327
run: |
24-
npm install
28+
npm ci
2529
ci/run_dependencies.sh
2630
npm test
2731
ci/stop_dependencies.sh
@@ -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)