Skip to content

Commit 19c5ded

Browse files
committed
Add cargo fmt --check to github actions
1 parent 3bba201 commit 19c5ded

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,15 @@ jobs:
4949
run: cargo build --verbose --no-default-features
5050
- name: Run tests
5151
run: cargo test --verbose --no-default-features --tests
52+
53+
rustfmt:
54+
55+
runs-on: ubuntu-latest
56+
57+
steps:
58+
- uses: actions/checkout@v4
59+
- uses: dtolnay/rust-toolchain@stable
60+
with:
61+
components: rustfmt
62+
- name: Run rustfmt check
63+
run: cargo fmt -- --check

0 commit comments

Comments
 (0)