Merge pull request #752 from chrisglass/add-cargo-fmt-check

Introduce a "cargo fmt" github action gate
This commit is contained in:
Jeremy Soller 2026-03-04 10:19:08 -07:00 committed by GitHub
commit 7ce2974273
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

26
.github/workflows/rust-checks.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Rust Checks
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check