Skip to content

Commit a598229

Browse files
committed
ci: 🎡 Test different types of environments with matrix
1 parent d5e5e46 commit a598229

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

‎.github/workflows/node.js.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,24 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-latest
12-
11+
strategy:
12+
matrix:
13+
node:
14+
- 14
15+
- 16
16+
- 18
17+
os:
18+
- ubuntu-latest
19+
- macos-latest
20+
- windows-latest
21+
name: Node.js v${{ matrix.node }} on ${{ matrix.os }}
22+
runs-on: ${{ matrix.os }}
1323
steps:
1424
- uses: actions/checkout@v3
15-
- name: Use Node.js 16
25+
- name: Use Node.js ${{ matrix.node }}
1626
uses: actions/setup-node@v3
1727
with:
18-
node-version: 16
28+
node-version: ${{ matrix.node }}
1929
cache: 'yarn'
2030
- run: yarn install
2131
- run: yarn test

0 commit comments

Comments
 (0)