Skip to content

Commit 7b3caa7

Browse files
committed
add rustfmt check to CI
1 parent 69c3c11 commit 7b3caa7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13+
rustfmt:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: dtolnay/rust-toolchain@master
18+
with:
19+
toolchain: stable
20+
components: rustfmt
21+
- run: cargo fmt --check
1322
semver:
1423
runs-on: macos-11.0
1524
steps:

0 commit comments

Comments
 (0)