Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfb1114

Browse files
committed
Update test workflow.
1 parent a238dfb commit dfb1114

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/test.yml

+7-11
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@ on: [push, pull_request]
55
jobs:
66
lint:
77
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [14, 16]
811
steps:
912
- uses: actions/checkout@v2
10-
- name: Setup Node.js
11-
uses: actions/setup-node@v1
13+
- uses: actions/setup-node@v2
1214
with:
13-
node-version: 12.x
14-
- name: npm install
15-
run: npm install
16-
env:
17-
CI: true
18-
- name: lint
19-
run: npm run lint
20-
env:
21-
CI: true
15+
node-version: ${{ matrix.node-version }}
16+
- run: npm install
17+
- run: npm run lint
2218

2319
unit:
2420
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)