Add coverage report to CI

This commit is contained in:
Aitor Ruano 2020-01-22 16:52:59 +01:00 committed by GitHub
parent ba43caf87a
commit 19724473de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -62,3 +62,22 @@ jobs:
with: with:
command: clippy command: clippy
args: -- -D warnings args: -- -D warnings
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/tarpaulin@v0.1
- uses: codecov/codecov-action@v1.0.5
with:
token: ${{secrets.CODECOV_TOKEN}}
- uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml