Skip to content

Commit

Permalink
Check rustfmt in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Dec 29, 2024
1 parent 60d8ea2 commit c291375
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,23 @@ jobs:
- run: cargo build

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
rustup default nightly
rustup update --no-self-update
rustup component add rustfmt
- run: cargo fmt -- --check

success:
needs:
- test
- msrv
- rustfmt
runs-on: ubuntu-latest
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
Expand Down

0 comments on commit c291375

Please sign in to comment.