name: Code Quality
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
code_quality:
name: Check formatting and Lints
runs-on: macos-26
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- name: Rust Cache (Optimized)
uses: Swatinem/rust-cache@v2
with:
cache-targets: true
cache-all-crates: true
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --profile ci