Skip to content

Commit

Permalink
ci: migrate tarpaulin to non-deprecated action
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed May 27, 2024
1 parent c8ce519 commit 858d948
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,19 @@ jobs:
with:
path: target
key: ${{ runner.os }}-cargo-${{ matrix.rust-toolchain }}-${{ matrix.feature }}

- name: Install cargo-binstall
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://github.com/raw/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- name: Install cargo-tarpaulin
run: |
cargo binstall -y cargo-tarpaulin
- name: Measure code coverage with ${{ matrix.feature }} feature
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.16.0'
args: '-v --out Xml --ciserver github-actions --no-default-features --features=${{ matrix.feature }}'
run: |
cargo tarpaulin -v --out Xml --ciserver github-actions --no-default-features --features=${{ matrix.feature }}
- name: Upload coverage statistics
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 858d948

Please sign in to comment.