Skip to content

Commit 4795453

Browse files
committed
ci: add cargo fmt task.
This commit adds a CI task that ensures `cargo fmt` is applied universally.
1 parent 23cc8a1 commit 4795453

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
@@ -11,6 +11,21 @@ env:
1111
RUSTFLAGS: -D warnings
1212

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

0 commit comments

Comments
 (0)