Skip to content

Commit

Permalink
Move rustfmt-check into a separate job (#15)
Browse files Browse the repository at this point in the history
Summary:
Track failures of rustfmt (which happen when formatter changes in nightly) separately for regular build failures.

Pull Request resolved: #15

Reviewed By: JakobDegen

Differential Revision: D66723349

Pulled By: stepancheg

fbshipit-source-id: 5277c10007d2b1ffb15e19b86985794d312909ca
  • Loading branch information
stepancheg authored and facebook-github-bot committed Dec 3, 2024
1 parent 6d09283 commit 7ec12ad
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 7ec12ad

Please sign in to comment.