2019-09-22 05:17:07 +00:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2019-10-04 14:23:35 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2020-05-06 22:01:12 +00:00
|
|
|
- feature/*
|
2019-10-04 14:23:35 +00:00
|
|
|
- releases/*
|
2019-09-22 05:17:07 +00:00
|
|
|
push:
|
2019-10-04 14:23:35 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2020-05-06 22:01:12 +00:00
|
|
|
- feature/*
|
2019-10-04 14:23:35 +00:00
|
|
|
- releases/*
|
2019-09-22 05:17:07 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2020-05-07 09:50:41 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-05-07 09:51:19 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macOS-latest
|
|
|
|
- windows-latest
|
2019-09-22 05:17:07 +00:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
# https://github.com/actions/checkout
|
|
|
|
name: Checkout
|
2020-05-06 21:12:22 +00:00
|
|
|
uses: actions/checkout@v2
|
2020-05-07 00:15:24 +00:00
|
|
|
-
|
|
|
|
name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
2019-09-22 05:17:07 +00:00
|
|
|
-
|
|
|
|
name: Install
|
2020-05-06 22:01:12 +00:00
|
|
|
run: npm install
|
2019-09-22 05:17:07 +00:00
|
|
|
-
|
|
|
|
name: Test
|
|
|
|
run: npm run test
|
2020-05-07 09:47:49 +00:00
|
|
|
-
|
|
|
|
# https://github.com/codecov/codecov-action
|
|
|
|
name: Upload coverage
|
|
|
|
uses: codecov/codecov-action@v1
|
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
file: ./coverage/clover.xml
|