From d904570708359bd11fbfbf6801900188081502ef Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Tue, 24 Dec 2024 08:48:40 +0100 Subject: [PATCH] github: use tarpauline instead of grcov --- .github/workflows/rust.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b9c685a..be620ff 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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: