2020-08-21 08:45:16 -04:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- releases/v*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-20.04
|
|
|
|
- ubuntu-18.04
|
|
|
|
- ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-11-18 12:41:33 -05:00
|
|
|
uses: actions/checkout@v2
|
2020-08-21 08:45:16 -04:00
|
|
|
-
|
|
|
|
name: Install
|
|
|
|
run: yarn install
|
|
|
|
-
|
|
|
|
name: Test
|
|
|
|
run: yarn run test
|
|
|
|
-
|
|
|
|
name: Upload coverage
|
2020-11-18 12:41:33 -05:00
|
|
|
uses: codecov/codecov-action@v1
|
2020-08-21 08:45:16 -04:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
file: ./coverage/clover.xml
|