Skip to content

test: cache

test: cache #28

Workflow file for this run

name: Rust Cache and Test
on:
push:
jobs:
test:
name: Cache and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Clean workspace
run: |
cargo clean --doc
- name: Run tests
run: cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1
- name: Upload coverage
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: lcov.info