name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile minimal
- run: cargo +stable test --all-targets
quality:
name: Format, Clippy, and rustdoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile minimal
- run: cargo +stable fmt --all -- --check
- run: cargo +stable clippy --all-targets -- -D warnings
- run: cargo +stable doc --no-deps
env:
RUSTDOCFLAGS: -D warnings
msrv:
name: Rust 1.88
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: rustup toolchain install 1.88.0 --profile minimal
- run: cargo +1.88.0 test --all-targets