We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60d8ea2 commit c291375Copy full SHA for c291375
.github/workflows/rust.yml
@@ -50,10 +50,23 @@ jobs:
50
51
- run: cargo build
52
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
+
65
success:
66
needs:
67
- test
68
- msrv
69
+ - rustfmt
70
runs-on: ubuntu-latest
71
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
72
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
0 commit comments