Skip to content

Commit 163fa33

Browse files
committed
add rustfmt check to CI
1 parent 127f2be commit 163fa33

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
@@ -12,6 +12,15 @@ env:
1212
CARGO_TERM_COLOR: always
1313

1414
jobs:
15+
rustfmt:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: dtolnay/rust-toolchain@master
20+
with:
21+
toolchain: stable
22+
components: rustfmt
23+
- run: cargo fmt --check
1524
semver:
1625
runs-on: macos-11.0
1726
steps:

0 commit comments

Comments
 (0)