Skip to content

Commit 1651d6c

Browse files
committed
ci: add cargo fmt check job
1 parent c4a70cc commit 1651d6c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ jobs:
2121
git fetch origin "$BASE_REF"
2222
python3 scripts/validate-changelog.py "origin/$BASE_REF"
2323
24+
fmt:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
28+
29+
- name: Install Rust
30+
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
31+
with:
32+
components: rustfmt
33+
34+
- name: Check formatting
35+
run: cargo fmt --check
36+
2437
test:
2538
runs-on: ubuntu-latest
2639
steps:

0 commit comments

Comments
 (0)