Skip to content

Commit 4787278

Browse files
committed
Merge fmt workflow with the main CI workflow
1 parent ce2c610 commit 4787278

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v3
1818
- name: Install Rust
19-
uses: actions-rs/toolchain@v1
19+
uses: dtolnay/rust-toolchain@master
2020
with:
2121
toolchain: ${{ matrix.rust }}
22-
profile: minimal
23-
override: true
2422
- uses: Swatinem/rust-cache@v2
2523
- name: Build
2624
run: cargo test --no-run
@@ -32,3 +30,18 @@ jobs:
3230
run: |
3331
cargo run -- bisect-rustc --help | grep "Examples:"
3432
cargo run -- --help | grep "Commands:"
33+
34+
fmt:
35+
name: rustfmt
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout source
39+
uses: actions/checkout@v3
40+
- name: Install Rust
41+
uses: dtolnay/rust-toolchain@stable
42+
with:
43+
components: rustfmt
44+
- name: Run rustfmt check
45+
run: |
46+
cargo fmt --version
47+
cargo fmt --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false)

.github/workflows/fmt.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)