Update GitHub test workflow.

This commit is contained in:
Sebastian Tschan 2021-09-25 09:42:18 +09:00
parent 3f685e03da
commit 049f6695e1
No known key found for this signature in database
GPG Key ID: 4E0D23DC53601255

View File

@ -5,20 +5,16 @@ on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12.x
- name: npm install
run: npm install
env:
CI: true
- name: lint
run: npm run lint
env:
CI: true
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
mocha:
runs-on: ubuntu-latest
@ -55,7 +51,7 @@ jobs:
run: docker-compose down -v
- name: Upload reports
if: always()
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v2
with:
name: reports
path: wdio/reports
@ -78,7 +74,7 @@ jobs:
run: docker-compose down -v
- name: Upload reports
if: always()
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v2
with:
name: reports
path: wdio/reports