Skip to content

Commit

Permalink
fixup! Measure test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mxpv committed Sep 14, 2023
1 parent f17b547 commit 7a291f7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,24 @@ jobs:

- run: |
sudo apt-get install protobuf-compiler
- name: Install grcov
run: |
cargo install grcov
grcov --version
- run: |
sudo -E $(command -v cargo) test --all-features
- name: Tests
env:
RUSTFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "target/coverage/%p-%m.profraw"
run: |
sudo -E $(command -v cargo) test --all-features
- run: |
# Fix permissions after sudo.
sudo chown -R $(whoami) target/coverage/
- name: Collect coverage data
run: |
grcov . \
--source-dir . \
--binary-path ./target/debug/ \
Expand Down

0 comments on commit 7a291f7

Please sign in to comment.