name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build (all features)
run: cargo build --verbose --all-features
- name: Run tests (all features)
run: cargo test --verbose --all-features
- name: Install cargo-insta
uses: taiki-e/install-action@v2
with:
tool: cargo-insta
- name: Check snapshots (reject unreferenced in CI)
run: cargo insta test --all-features --unreferenced auto -- -q
- name: Run clippy (all features)
run: cargo clippy --verbose --all-features