name: CI
on:
push:
pull_request:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --check
- name: Lint
run: cargo clippy --locked --all-targets --all-features -- -D warnings
- name: Test
run: cargo test --locked --all-targets --all-features
- name: Build release binary
run: cargo build --release --locked