Skip to content

Commit 05f9557

Browse files
committed
ci: add cargo fmt check job.
This commit adds a job to the `ci.yml` workflow that ensures `cargo fmt` has been applied consistently.
1 parent d65f05c commit 05f9557

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ env:
1212
RUSTDOCFLAGS: -D warnings
1313

1414
jobs:
15+
rustfmt:
16+
name: Format
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout sources
20+
uses: actions/checkout@v3
21+
with:
22+
persist-credentials: false
23+
- name: Install rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
with:
26+
components: rustfmt
27+
- name: Check formatting
28+
run: cargo fmt -- --check
29+
1530
clippy:
1631
name: Clippy
1732
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)