on:
push:
branches:
- main
pull_request:
branches:
- main
name: Test coverage
jobs:
coverage:
name: Collect test coverage
runs-on: ubuntu-latest
continue-on-error: true
env:
RUSTFLAGS: -D warnings
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@720f7e45ccee46c12a7b1d7bed2ab733be9be5a1
- name: Install tools
uses: taiki-e/install-action@5ab30948b991e8d6aa5a6c1e33c6aea130c6de65 with:
tool: cargo-llvm-cov,just,nextest
- name: Collect coverage data
run: |
just coverage --lcov --output-path lcov.info
- name: Upload coverage data to codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info