2020-08-17 08:32:27 +08:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-09-09 05:16:37 +08:00
|
|
|
uses: actions/checkout@v2.3.2
|
2020-08-17 08:32:27 +08:00
|
|
|
-
|
|
|
|
name: Install
|
|
|
|
run: yarn install
|
|
|
|
-
|
|
|
|
name: Test
|
|
|
|
run: yarn run test
|
2020-09-09 05:34:53 +08:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2020-09-09 13:51:00 +08:00
|
|
|
uses: codecov/codecov-action@v1.0.13
|
2020-09-09 05:34:53 +08:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
file: ./coverage/clover.xml
|