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 Aug 25, 2023
1 parent a5c021a commit 363133e
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 @@ -6,6 +6,21 @@ env:
RUSTFLAGS: -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

build-windows:
runs-on: windows-latest
steps:
Expand Down

0 comments on commit 363133e

Please sign in to comment.