Skip to content

Add source display #105

Add source display

Add source display #105

Workflow file for this run

name: Coverage
on: [pull_request, push]
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-24.04
env:
CARGO_TERM_COLOR: always
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Populate cache
uses: ./.github/workflows/cache
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- run: |
sudo apt-get update
sudo apt-get install -y gdb
# run coverage on tests
- run: cargo llvm-cov --workspace --codecov --output-path codecov.json --release
- name: Upload coverage to Codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json
fail_ci_if_error: true