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: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Setup rust toolchain
- name: Run cargo-tarpaulin uses: actions-rs/toolchain@v1
uses: actions-rs/tarpaulin@v0.1
with: with:
args: "--ignore-tests --features githubActions -- --test-threads 1" toolchain: nightly
override: true
- name: Upload to codecov.io - name: Run tests
uses: codecov/codecov-action@v1 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 }}