Skip to content

test: setup codecov

test: setup codecov #1

Workflow file for this run

name: coverage
on:
push:
- main
jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: checkout_repository
uses: actions/checkout@v4
- name: install_rust_nightly
uses: dtolnay/rust-toolchain@stable
- name: install_code_coverage_tool
uses: taiki-e/install-action@cargo-llvm-cov
- name: generate_code_coverage
run: cargo llvm-cov --all-features --locked --lcov --output-path lcov.info
- name: upload_code_coverage
uses: codecov/codecov-action@v4
with:
files: lcov.info