From c5d0ae18b2c74b2ebe231dcbfcb4e6cba7304a49 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sun, 28 Jan 2024 04:26:59 +0000 Subject: [PATCH] CI: Migrate to `cargo-tarpaulin` container --- .github/workflows/ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73cee86..41d4161 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,16 +38,23 @@ jobs: codecov: name: Code coverage runs-on: ubuntu-latest + container: + image: xd009642/tarpaulin:develop-nightly + options: --security-opt seccomp=unconfined + steps: - uses: actions/checkout@v4 - name: Install build dependencies - run: sudo apt install libpcsclite-dev - - name: Install coverage dependencies - run: cargo install cargo-tarpaulin + run: apt install libpcsclite-dev - name: Generate coverage report - run: cargo tarpaulin --engine llvm --all-features --release --timeout 600 --out Xml + run: > + cargo tarpaulin + --engine llvm + --release + --timeout 600 + --out xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v3.1.5 doc-links: name: Intra-doc links