Skip to content

Commit ab198fd

Browse files
committed
improve workflow
1 parent 1e9accc commit ab198fd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/nodeci.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [14.x, 15.x, 16.x, 17.x, 18.x]
14+
1015
steps:
1116
- uses: actions/checkout@v2
12-
- name: Use Node.js
17+
- name: Use Node.js ${{ matrix.node-version }}
1318
uses: actions/setup-node@v1
1419
with:
15-
node-version: '14.x'
20+
node-version: ${{ matrix.node-version }}
1621
- name: Check node version
1722
run: node -v
1823
- name: Install

0 commit comments

Comments
 (0)