feat: add ci step upload coverage report Codecov
This commit is contained in:
parent
537fbd040a
commit
bb0414e7bb
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
@ -18,6 +18,8 @@ jobs:
|
|||||||
prebuild:
|
prebuild:
|
||||||
name: Pre-build checks
|
name: Pre-build checks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -57,6 +59,10 @@ jobs:
|
|||||||
run: yarn test:unit
|
run: yarn test:unit
|
||||||
if: success()
|
if: success()
|
||||||
|
|
||||||
|
- name: Upload coverage report to Codecov
|
||||||
|
run: yarn coverage
|
||||||
|
if: success()
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
needs: prebuild
|
needs: prebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user