Skip to content

Update codecov-action to v5 #198

Update codecov-action to v5

Update codecov-action to v5 #198

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- run: cargo build --all
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
- run: cargo test --all
- run: cargo install cargo-tarpaulin
if: matrix.os == 'ubuntu-latest'
- run: cargo tarpaulin --out xml
if: matrix.os == 'ubuntu-latest'
- name: Upload coverage report to codecov.io
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
if: matrix.os == 'ubuntu-latest'