name: CI
on:
permissions:
contents: read
jobs:
check:
strategy:
matrix:
os:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all --check
- run: cargo clippy --locked --all-targets -- -D warnings
- run: cargo test --locked --all-targets
- run: cargo test --locked --doc