Skip to content

Commit

Permalink
ci: add cargo fmt check job.
Browse files Browse the repository at this point in the history
This commit adds a job to the `ci.yml` workflow that ensures `cargo fmt`
has been applied consistently.
  • Loading branch information
cpu committed Sep 6, 2023
1 parent 6ad50e7 commit 9d5cf2b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ env:
RUSTDOCFLAGS: -D warnings

jobs:
rustfmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9d5cf2b

Please sign in to comment.