name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
quality:
name: Quality
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.97.1
with:
components: clippy, rustfmt
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets -- -D warnings -W clippy::pedantic
- run: cargo test --all-targets
- run: cargo package --locked
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-14]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.97.1
- run: cargo test --all-targets