Skip to content

Commit f642c56

Browse files
jturner314bluss
authored andcommitted
rustfmt: Add rustfmt check to CI
1 parent f700e19 commit f642c56

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ jobs:
2626
components: clippy
2727
- uses: Swatinem/rust-cache@v2
2828
- run: cargo clippy --features docs
29+
30+
format:
31+
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
rust:
35+
- nightly
36+
name: format/${{ matrix.rust }}
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: dtolnay/rust-toolchain@master
40+
with:
41+
toolchain: ${{ matrix.rust }}
42+
components: rustfmt
43+
- run: cargo fmt --all --check
44+
2945
tests:
3046
runs-on: ubuntu-latest
3147
strategy:
@@ -103,6 +119,7 @@ jobs:
103119
conclusion:
104120
needs:
105121
- clippy
122+
# - format # should format be required?
106123
- tests
107124
- cross_test
108125
- cargo-careful

0 commit comments

Comments
 (0)