Skip to content

Commit

Permalink
Move rustfmt-check into a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Dec 3, 2024
1 parent 6d09283 commit ca0d98d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
- run: cargo fmt -- --check
components: clippy
- run: cargo clippy ${{ matrix.flags }}
- run: cargo build ${{ matrix.flags }}
- run: cargo test ${{ matrix.flags }}

rustfmt-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt
- run: cargo fmt -- --check

0 comments on commit ca0d98d

Please sign in to comment.