Skip to content

Commit

Permalink
Fix codecov workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Mar 7, 2022
1 parent 709eb69 commit 802927b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .github/grcov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
branch: true
ignore-not-existing: true
llvm: true
filter: covered
output-type: lcov
output-path: ./lcov.info
prefix-dir: /home/user/build/
30 changes: 18 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,26 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: nightly
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.15.0'
args: '-- --test-threads 1'
- name: Install rustfmt
shell: bash
run: rustup component add rustfmt
- name: Unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --bins --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests'
- name: Coverage
uses: actions-rs/grcov@v0.1
with:
config: .github/grcov.yml
- name: Upload to codecov.io
uses: codecov/codecov-action@v1.4.1
- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
uses: codecov/codecov-action@v2

doc:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 802927b

Please sign in to comment.