docs: more documentation improvements #470
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: [push] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
coverage: | |
name: Test Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: Get date | |
run: | | |
echo "TODAY_DATE=$(date -Idate)" >> "$GITHUB_ENV" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cache Toolchain | |
uses: actions/cache@v4 | |
with: | |
path: ~/.rustup | |
key: toolchain-x86-64-nightly-${{ env.TODAY_DATE }} | |
- name: Install `nightly` Toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt,clippy,llvm-tools-preview | |
- name: Install cargo-llvm-cov | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: cargo-llvm-cov | |
- name: Generate Coverage | |
run: | | |
cargo run --example build-float-doctest-tree --features="rkyv" | |
cargo run --example build-immutable-doctest-tree --features="rkyv" | |
cargo llvm-cov --all-features --tests --ignore-run-fail --workspace --codecov --output-path codecov.json | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: codecov.json |