require git init in directory to use git ignore files for filter defi… #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rustfmt Checks | |
on: | |
push: | |
branches: main | |
pull_request: | |
jobs: | |
rustfmt-checks: | |
runs-on: ubuntu-latest | |
name: rustfmt checks | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v4 | |
- name: Install the latest stable Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Run rustfmt check | |
run: cargo fmt --all --check |