Skip to content

Commit adb207b

Browse files
committed
ci: add cargo fmt check
1 parent 3a75547 commit adb207b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ jobs:
4646
--base-ref "${{ github.event.pull_request.base.sha }}" \
4747
--head-ref "${{ github.sha }}"
4848
49+
fmt:
50+
name: cargo fmt
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
56+
- name: Install Rust
57+
uses: dtolnay/rust-toolchain@stable
58+
59+
- name: Rust cache
60+
uses: Swatinem/rust-cache@v2
61+
62+
- name: Format check
63+
run: cargo fmt --all --check
64+
4965
test:
5066
name: cargo test (${{ matrix.os }})
5167
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)