Skip to content

feat: --fail-under 15 #13

feat: --fail-under 15

feat: --fail-under 15 #13

Workflow file for this run

name: coverage
on: [push, pull_request]
jobs:
coverage:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Generate code coverage
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --engine llvm --fail-under=15
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}