name: CI
on:
push:
branches:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo build --all-targets
# No varnishd on the runner: tests that need it (or python3/mutate.py)
# skip gracefully on their own -- see AGENTS.md.
- run: cargo test
- run: cargo clippy --all-targets -- -D warnings
- run: cargo fmt --check