feat: add ci step upload coverage report Codecov

This commit is contained in:
Joe Previte 2021-04-22 15:28:30 -07:00
parent 537fbd040a
commit bb0414e7bb
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,8 @@ jobs:
prebuild:
name: Pre-build checks
runs-on: ubuntu-latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
@ -57,6 +59,10 @@ jobs:
run: yarn test:unit
if: success()
- name: Upload coverage report to Codecov
run: yarn coverage
if: success()
build:
name: Build
needs: prebuild