Skip to content

Commit

Permalink
Check formatting in CI via rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon committed May 1, 2024
1 parent fc433e2 commit 6a5c0fa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,20 @@ jobs:
- name: Run cargo clippy
run: cargo clippy --all-targets

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust nightly with rustfmt
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt

- name: Run rustfmt --check
run: cargo fmt -- --check

test:
needs: clippy
needs: [clippy, fmt]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down

0 comments on commit 6a5c0fa

Please sign in to comment.