cosmic-terminal/.github/workflows/rust-checks.yml
Chris Glass 8d7b92b1b1 Introduce a "cargo fmt" github action gate
This should prevent non-fmt code from hitting the master branch.
2026-02-28 22:39:27 +01:00

26 lines
452 B
YAML

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