forked from realaravinth/libmedium
feat: use cargo-tarpaulin for generating coverage
This commit is contained in:
parent
3aabaeb52d
commit
25abc19161
2 changed files with 10 additions and 4 deletions
12
.github/workflows/coverage.yml
vendored
12
.github/workflows/coverage.yml
vendored
|
@ -36,10 +36,14 @@ jobs:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: generate coverage
|
- name: Generate coverage file
|
||||||
run: make coverage
|
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
|
- name: Upload to Codecov
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
with:
|
if: github.ref == 'refs/heads/master'
|
||||||
files: ./target/lcov.info,coverage.xml
|
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,3 +2,5 @@
|
||||||
posts_cache
|
posts_cache
|
||||||
tmp/
|
tmp/
|
||||||
*.profraw
|
*.profraw
|
||||||
|
tarpaulin-report.html
|
||||||
|
coverage.xml
|
||||||
|
|
Loading…
Reference in a new issue