feat: use cargo-tarpaulin for generating coverage

This commit is contained in:
Aravinth Manivannan 2022-01-05 13:03:27 +05:30
parent 3aabaeb52d
commit 25abc19161
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 10 additions and 4 deletions

View File

@ -36,10 +36,14 @@ jobs:
profile: minimal
override: true
- name: generate coverage
run: make coverage
- name: Generate coverage file
if: (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
uses: actions-rs/tarpaulin@v0.1
with:
args: "-t 1200"
env:
GIT_HASH: 8e77345f1597e40c2e266cb4e6dee74888918a61
- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
files: ./target/lcov.info,coverage.xml
if: github.ref == 'refs/heads/master'

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
posts_cache
tmp/
*.profraw
tarpaulin-report.html
coverage.xml