File tree Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 16
16
- name : Checkout repository
17
17
uses : actions/checkout@v3
18
18
- name : Install Rust
19
- uses : actions-rs/ toolchain@v1
19
+ uses : dtolnay/rust- toolchain@master
20
20
with :
21
21
toolchain : ${{ matrix.rust }}
22
- profile : minimal
23
- override : true
24
22
- uses : Swatinem/rust-cache@v2
25
23
- name : Build
26
24
run : cargo test --no-run
32
30
run : |
33
31
cargo run -- bisect-rustc --help | grep "Examples:"
34
32
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)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments