Skip to content

Commit

Permalink
fix grcov run
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbus committed Feb 22, 2024
1 parent 362e76c commit c0a5d59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ jobs:
env:
RUSTFLAGS: "-Cinstrument-coverage"
RUSTDOCFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "target/coverage/%p-%m.profraw"
run: cargo test

- name: Install grcov
run: cargo install grcov

- name: Generate coverage report
run: >
grcov . -s . --binary-path target/debug/ -t lcov --branch
--ignore-not-existing -o coverage.lcov
grcov target/coverage -s . --binary-path target/debug/ -t lcov --branch
--ignore 'target/*' --ignore 'tests/*' --ignore-not-existing -o coverage.lcov
- name: Upload coverage report
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit c0a5d59

Please sign in to comment.