name: Test
on:
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
shared-key: test-${{ matrix.os }}
- run: cargo test --verbose --all-features