chore(ci): make fmt
-> make fmt-check
(followup for #431) (#435)
#559
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: Format check | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
paths: | |
- 'src/**.rs' | |
- Cargo.toml | |
- Cargo.lock | |
- rustfmt.toml | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup nightly rustfmt | |
run: | | |
rustup set profile minimal | |
rustup install nightly | |
rustup override set nightly | |
rustup component add rustfmt | |
- name: Check formatting | |
run: | | |
make fmt-check |