Skip to content

Track test coverage #42

Track test coverage

Track test coverage #42

Workflow file for this run

---
name: Test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
cargo-test:
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: ["1.74", "stable"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust_version }}
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- uses: extractions/setup-just@v2
- name: Test
run: just test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
files: lcov.info
use_oidc: true
fail_ci_if_error: true