2020-01-17 01:36:42 -07:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-05-23 17:14:30 -06:00
|
|
|
- releases/v*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2020-01-17 01:36:42 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-09-28 13:53:01 -06:00
|
|
|
uses: actions/checkout@v2.3.3
|
2020-01-17 01:36:42 -07:00
|
|
|
-
|
|
|
|
name: Install
|
2020-06-10 14:22:42 -06:00
|
|
|
run: yarn install
|
2020-01-17 01:36:42 -07:00
|
|
|
-
|
|
|
|
name: Test
|
2020-06-10 14:22:42 -06:00
|
|
|
run: yarn run test
|
2020-05-06 13:17:47 -06:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2020-08-18 06:03:11 -06:00
|
|
|
uses: codecov/codecov-action@v1.0.13
|
2020-05-06 13:17:47 -06:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
file: ./coverage/clover.xml
|