From daaa26f81eca7e4a9d677f6697de97cc74726efd Mon Sep 17 00:00:00 2001 From: Jim Turner Date: Fri, 13 Sep 2024 22:43:15 -0400 Subject: [PATCH] Update CI action for coverage See https://crates.io/crates/cargo-tarpaulin#github-actions --- .github/workflows/ci.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67e6a7f..6eed6d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,20 +121,15 @@ jobs: coverage: runs-on: ubuntu-latest - strategy: - matrix: - rust: - - nightly + container: + image: xd009642/tarpaulin:develop-nightly + options: --security-opt seccomp=unconfined steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.rust }} - - name: Install tarpaulin - run: cargo install cargo-tarpaulin -f + - name: Checkout repository + uses: actions/checkout@v4 - name: Generate code coverage - run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml + run: cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml - name: Upload to codecov.io - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 with: fail_ci_if_error: true