github: add coverage build for master branch

This commit is contained in:
David Lechner
2021-01-24 15:01:27 -06:00
parent 306afc4a8e
commit 19b898bb6c
2 changed files with 23 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Coverage
on:
push:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: actions/checkout@v2
- run: yarn install
- run: yarn coverage
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
- run: yarn test
- run: yarn coverage
- name: Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: yarn build