Skip to content

Commit

Permalink
Merge coverages generated under v1 and v2
Browse files Browse the repository at this point in the history
  • Loading branch information
spacebear21 committed Nov 11, 2024
1 parent a97f177 commit bd94b57
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ jobs:
- name: "Install cargo-llvm-cov"
uses: taiki-e/install-action@cargo-llvm-cov
- name: "Generate code coverage for tests"
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
run: bash contrib/coverage.sh
- name: "Upload report to coveralls"
uses: coverallsapp/github-action@v2
8 changes: 8 additions & 0 deletions contrib/coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e

# https://github.com/taiki-e/cargo-llvm-cov?tab=readme-ov-file#merge-coverages-generated-under-different-test-conditions
cargo llvm-cov clean --workspace # remove artifacts that may affect the coverage results
cargo llvm-cov --no-report --features=send,receive
cargo llvm-cov --no-report --features=v2,danger-local-https,io
cargo llvm-cov report --lcov --output-path lcov.info # generate report without tests
Empty file modified contrib/lint.sh
100644 → 100755
Empty file.

0 comments on commit bd94b57

Please sign in to comment.