Skip to content

chore: release v0.5.0 (#259) #348

chore: release v0.5.0 (#259)

chore: release v0.5.0 (#259) #348

Workflow file for this run

on:
push:
branches: [ main ]
pull_request:
branches:
- main
name: Test coverage
jobs:
coverage:
name: Collect test coverage
runs-on: ubuntu-latest
env:
# The `coverage_nightly` cfg value is not recognized, so we need to allow unknown
# cfg values in order to have the build succeed.
RUSTFLAGS: -D warnings -A unexpected_cfgs
CARGO_TERM_COLOR: always
steps:
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@nextest
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Collect coverage data
# Generate coverage report using nextest.
run: |
cargo llvm-cov --no-report nextest --all-features
cargo llvm-cov --no-report --doc --all-features
cargo llvm-cov report --doctests --lcov --output-path lcov.info
- name: Upload coverage data to codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info