File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- on : [ push ]
1+ on :
2+ push :
3+ branches :
4+ - master
25
3- name : build
6+ name : Check buddy
47
58jobs :
69 check :
7- name : Check Buddy
810 runs-on : ubuntu-latest
911 steps :
1012 - uses : actions/checkout@v3
11- - name : Install latest stable
12- uses : actions-rs/toolchain@v1
13+ - uses : actions-rs/toolchain@v1
1314 with :
14- toolchain : stable
15- override : true
1615 components : rustfmt, clippy
17-
18- - name : Run cargo check
19- uses : actions-rs/cargo@v1
20- with :
21- command : check
22-
16+ - uses : Swatinem/rust-cache@v2
17+ - name : Check
18+ run : cargo clippy --workspace --all-targets --all-features -- -D warnings
19+ - name : rustfmt
20+ run : cargo fmt --all --check
21+ test :
22+ needs : check
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v3
26+ - uses : actions-rs/toolchain@v1
27+ - uses : Swatinem/rust-cache@v2
2328 - name : Run cargo test
2429 uses : actions-rs/cargo@v1
2530 with :
2631 command : test
27- args : --all
32+ args : --workspace -- all
You can’t perform that action at this time.
0 commit comments