File tree Expand file tree Collapse file tree 2 files changed +100
-0
lines changed
Expand file tree Collapse file tree 2 files changed +100
-0
lines changed Original file line number Diff line number Diff line change 1+ on : push
2+ name : stable-beta-nightly
3+
4+ jobs :
5+ ci :
6+ runs-on : ubuntu-latest
7+ strategy :
8+ matrix :
9+ rust :
10+ - stable
11+ - beta
12+ - nightly
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions-rs/toolchain@v1
17+ with :
18+ profile : minimal
19+ toolchain : ${{ matrix.rust }}
20+ override : true
21+ components : rustfmt, clippy
22+
23+ - uses : actions-rs/cargo@v1
24+ with :
25+ command : check
26+
27+ - uses : actions-rs/cargo@v1
28+ with :
29+ command : fmt
30+ args : --all -- --check
31+
32+ - uses : actions-rs/cargo@v1
33+ with :
34+ command : clippy
35+ args : -- -D warnings
36+
Original file line number Diff line number Diff line change 1+ on : [push, pull_request]
2+
3+ name : Rust Check/Test/Fmt
4+
5+ jobs :
6+ check :
7+ name : Check
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - uses : actions-rs/toolchain@v1
12+ with :
13+ profile : minimal
14+ toolchain : stable
15+ override : true
16+ - uses : actions-rs/cargo@v1
17+ with :
18+ command : check
19+
20+ test :
21+ name : Test Suite
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v4
25+ - uses : actions-rs/toolchain@v1
26+ with :
27+ profile : minimal
28+ toolchain : stable
29+ override : true
30+ - uses : actions-rs/cargo@v1
31+ with :
32+ command : test
33+
34+ fmt :
35+ name : Rustfmt
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@v4
39+ - uses : actions-rs/toolchain@v1
40+ with :
41+ profile : minimal
42+ toolchain : stable
43+ override : true
44+ - run : rustup component add rustfmt
45+ - uses : actions-rs/cargo@v1
46+ with :
47+ command : fmt
48+ args : --all -- --check
49+
50+ clippy :
51+ name : Clippy
52+ runs-on : ubuntu-latest
53+ steps :
54+ - uses : actions/checkout@v4
55+ - uses : actions-rs/toolchain@v1
56+ with :
57+ profile : minimal
58+ toolchain : stable
59+ override : true
60+ - run : rustup component add clippy
61+ - uses : actions-rs/cargo@v1
62+ with :
63+ command : clippy
64+ args : -- -D warnings
You can’t perform that action at this time.
0 commit comments