Skip to content

ci: Update doc test log group name in feature powerset workflow #800

ci: Update doc test log group name in feature powerset workflow

ci: Update doc test log group name in feature powerset workflow #800

Workflow file for this run

name: Test coverage
on:
push:
branches: [ main ]
pull_request:
branches:
- main
# https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
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: rui314/setup-mold@v1
- 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