Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 049f669

Browse files
committed
Update GitHub test workflow.
1 parent 3f685e0 commit 049f669

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/test.yml

+9-13
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
mocha:
2420
runs-on: ubuntu-latest
@@ -55,7 +51,7 @@ jobs:
5551
run: docker-compose down -v
5652
- name: Upload reports
5753
if: always()
58-
uses: actions/upload-artifact@master
54+
uses: actions/upload-artifact@v2
5955
with:
6056
name: reports
6157
path: wdio/reports
@@ -78,7 +74,7 @@ jobs:
7874
run: docker-compose down -v
7975
- name: Upload reports
8076
if: always()
81-
uses: actions/upload-artifact@master
77+
uses: actions/upload-artifact@v2
8278
with:
8379
name: reports
8480
path: wdio/reports

0 commit comments

Comments
 (0)