Skip to content

Commit

Permalink
github: use tarpauline instead of grcov
Browse files Browse the repository at this point in the history
  • Loading branch information
vrutkovs committed Dec 24, 2024
1 parent 8f48cc4 commit d904570
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,27 @@ jobs:
target/
key: ${{ runner.os }}-cargo-nightly-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-nightly-
- name: Install cargo-tarpaulin
uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate test result and coverage report
run: |
cargo install --force cargo2junit grcov;
cargo install --force cargo2junit;
cargo build --verbose;
cargo test $CARGO_OPTIONS -- -Z unstable-options --format json | cargo2junit > results.xml;
zip -0 ccov.zip `find . \( -name "$PROJECT_NAME_UNDERSCORE*.gc*" \) -print`;
grcov ccov.zip -s . -t lcov --llvm --ignore-not-existing --ignore "/*" --ignore "tests/*" -o lcov.info;
- name: Upload test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
check_name: Test Results
github_token: ${{ secrets.GITHUB_TOKEN }}
files: results.xml
- name: Run cargo-tarpaulin
uses: clechasseur/rs-cargo@v2
with:
command: tarpaulin
- name: Upload to CodeCov
uses: codecov/codecov-action@v5
with:
Expand Down

0 comments on commit d904570

Please # to comment.