chore(deps): update actions (#21) #67
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Install cargo-hack | |
uses: taiki-e/install-action@6d49eff78fe8ad9f571fb25522747f2d9e84be6b # 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 | |
run: | | |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: rustic-rs/conflate |