name: CI
on:
push:
branches:
pull_request:
jobs:
test:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Rust toolchain
run: rustup toolchain install stable --profile minimal --component clippy,rustfmt
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: cargo test
- name: Build
run: cargo build --release