Skip to content

[nextest-runner] move some internal events into another module #5102

[nextest-runner] move some internal events into another module

[nextest-runner] move some internal events into another module #5102

Workflow file for this run

on:
push:
branches: [main, auto, canary]
pull_request:
branches:
- main
name: Test coverage
jobs:
coverage:
name: Collect test coverage
runs-on: ubuntu-latest
# nightly rust might break from time to time
continue-on-error: true
env:
RUSTFLAGS: -D warnings
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# Nightly Rust is used for cargo llvm-cov --doc below.
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2
- name: Install latest nextest release
uses: taiki-e/install-action@6aa8b420a527920162babdd71d780f9e5b3b4bc8 # v2
with:
tool: nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@6aa8b420a527920162babdd71d780f9e5b3b4bc8 # v2
with:
tool: cargo-llvm-cov
- name: Collect coverage data
# Generate separate reports for nextest and doctests, and combine them.
run: |
cargo llvm-cov --no-report nextest
cargo llvm-cov --no-report --doc
cargo llvm-cov report --doctests --lcov --output-path lcov.info
- name: Upload coverage data to codecov
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info