Update coverage.yml

This commit is contained in:
大深海 2021-09-20 20:38:07 +08:00 committed by GitHub
parent f177a8e615
commit cabf0091c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
name: Coverage
on:
push:
@ -29,9 +29,13 @@ jobs:
- run: npm run beforetest
- run: npm run cover
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
file: /home/runner/work/idraw/idraw/reports/clover.xml
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ../../reports/clover.xml # optional
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)