Skip to content

Commit b405c07

Browse files
authored
Merge pull request #252 from ehuss/rustfmt-action
Merge fmt workflow with the main CI workflow
2 parents 764d33d + 4787278 commit b405c07

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ jobs:
3232
run: |
3333
cargo run -- bisect-rustc --help | grep "Examples:"
3434
cargo run -- --help | grep "Commands:"
35+
36+
fmt:
37+
name: rustfmt
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout source
41+
uses: actions/checkout@v3
42+
- name: Install Rust
43+
uses: dtolnay/rust-toolchain@stable
44+
with:
45+
components: rustfmt
46+
- name: Run rustfmt check
47+
run: |
48+
cargo fmt --version
49+
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)