Skip to content

Commit bb2278e

Browse files
authored
Extend Node version test coverage (#1843)
* Extend Node version test coverage * Remove Node 16
1 parent 77f247b commit bb2278e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
strategy:
1818
matrix:
1919
runs-on: [ubuntu-latest, macos-latest-large, windows-latest]
20+
21+
# Node 18 is the current default Node version in hosted runners, so users may still use the toolkit with it when running tests (see https://github.com/actions/toolkit/issues/1841)
22+
# Node 20 is the currently support Node version for actions - https://docs.github.com/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runsusing-for-javascript-actions
23+
node-version: [18.x, 20.x]
2024
fail-fast: false
2125

2226
runs-on: ${{ matrix.runs-on }}
@@ -25,10 +29,10 @@ jobs:
2529
- name: Checkout
2630
uses: actions/checkout@v4
2731

28-
- name: Set Node.js 20.x
32+
- name: Set up Node ${{ matrix.node-version }}
2933
uses: actions/setup-node@v4
3034
with:
31-
node-version: 20.x
35+
node-version: ${{ matrix.node-version }}
3236

3337
- name: npm install
3438
run: npm install

0 commit comments

Comments
 (0)