Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Fix broken format CI (#763)
Browse files Browse the repository at this point in the history
* Try removing special toolchain component for format job

* Swap to an alternate formatting action

* Pretty formatting for CI
  • Loading branch information
alice-i-cecile authored Apr 25, 2023
1 parent 02a68c5 commit e88bf88
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:

jobs:
checks:
name: CI check (${{ matrix.ci-argument }})
runs-on: ubuntu-latest
strategy:
# Default is `true`
Expand All @@ -24,14 +25,10 @@ jobs:
- compilecheck
- doccheck
- doctest
- format
- test
include:
- ci-argument: clippy
toolchain-components: clippy
- ci-argument: format
toolchain-components: rustfmt
name: CI check (${{ matrix.ci-argument }})
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
Expand All @@ -45,3 +42,15 @@ jobs:
- name: CI job
# See tools/ci/src/main.rs for the commands this runs
run: cargo run -p ci -- ${{ matrix.ci-argument }}
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Ensure rustfmt is installed and setup problem matcher
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1

0 comments on commit e88bf88

Please sign in to comment.