From 090fd9e696ab18264e833fed25f9fc5c85a3ee28 Mon Sep 17 00:00:00 2001 From: brycx Date: Sat, 4 Mar 2023 09:50:07 +0100 Subject: [PATCH] codecov: Switch to tarpaulin (actions-rs/tarpaulin works no more) --- .github/workflows/code_coverage.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index 3dcf381..e52dc82 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -11,24 +11,18 @@ jobs: check: name: Code coverage runs-on: ubuntu-latest + container: + image: xd009642/tarpaulin:develop-nightly + options: --security-opt seccomp=unconfined steps: - name: Checkout repository uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c with: persist-credentials: false - - name: Install stable toolchain - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af - with: - toolchain: stable - override: true - - - name: Run cargo-tarpaulin - uses: actions-rs/tarpaulin@53c8f13dfa32fcd0f2787937353776e34409e833 - with: - timeout: '120' - out-type: 'Xml' - args: '-- --test-threads 1' + - name: Generate code coverage + run: | + cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml - name: Upload to codecov.io uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70