Skip to content

Commit c291375

Browse files
committed
Check rustfmt in CI
1 parent 60d8ea2 commit c291375

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/rust.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,23 @@ jobs:
5050
5151
- run: cargo build
5252

53+
rustfmt:
54+
name: Rustfmt
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@master
58+
- name: Install Rust
59+
run: |
60+
rustup default nightly
61+
rustup update --no-self-update
62+
rustup component add rustfmt
63+
- run: cargo fmt -- --check
64+
5365
success:
5466
needs:
5567
- test
5668
- msrv
69+
- rustfmt
5770
runs-on: ubuntu-latest
5871
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
5972
# failed" as success. So we have to do some contortions to ensure the job fails if any of its

0 commit comments

Comments
 (0)