Grcov with coverall

This commit is contained in:
veeso 2021-05-15 17:55:20 +02:00
parent 300256b196
commit 4c343c6f34
2 changed files with 29 additions and 7 deletions

8
.github/actions-rs/grcov.yml vendored Normal file
View file

@ -0,0 +1,8 @@
branch: false
ignore-not-existing: true
llvm: true
output-type: lcov
ignore:
- "/*"
- "C:/*"
- "../*"

View file

@ -12,11 +12,25 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
args: "--ignore-tests --features githubActions -- --test-threads 1"
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
toolchain: nightly
override: true
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: "0"
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
- name: Coverage with grcov
id: coverage
uses: actions-rs/grcov@v0.1
- name: Coveralls
uses: coverallsapp/github-action@v1.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage.outputs.report }}