Skip to content

feat: add method to retrieve Summary from Arc<Mutex> with error handling #1084

feat: add method to retrieve Summary from Arc<Mutex> with error handling

feat: add method to retrieve Summary from Arc<Mutex> with error handling #1084

Workflow file for this run

name: Test Coverage
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
paths:
- '**.rs'
- '**.snap'
- '**.yml'
jobs:
test:
name: Generate Coverage Report
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install cargo-tarpaulin
uses: taiki-e/install-action@5d427d86f088a6cedcddb92b3ad038d30721b52f # v2
with:
tool: cargo-tarpaulin
# We run the coverage report on the workspace, but we configured in codecov to only look at parts of the workspace essentially
#
# This is because we have a workspace with multiple crates, and we want to generate coverage for all of them, but we only want to
# report the coverage of rustic_backend and rustic_core crates (currently) as this is where the main logic is
- name: Generate code coverage
env:
RUST_BACKTRACE: "0"
run: |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: rustic-rs/rustic_core