name: Rust Format Check
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
fmt:
name: Check Rust Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true
- name: Check Rust formatting
run: cargo fmt --all -- --check