File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change 15
15
steps :
16
16
- uses : actions/checkout@v4
17
17
- uses : dtolnay/rust-toolchain@stable
18
- - uses : actions-rs/cargo@v1
19
- with :
20
- command : check
18
+ - run : cargo check
21
19
22
20
test :
23
21
name : cargo test
28
26
steps :
29
27
- uses : actions/checkout@v4
30
28
- uses : dtolnay/rust-toolchain@stable
31
- - uses : actions-rs/cargo@v1
32
- with :
33
- command : test
29
+ - run : cargo test
34
30
35
31
fmt :
36
32
name : cargo fmt --all -- --check
39
35
- uses : actions/checkout@v4
40
36
- uses : dtolnay/rust-toolchain@stable
41
37
- run : rustup component add rustfmt
42
- - uses : actions-rs/cargo@v1
43
- with :
44
- command : fmt
45
- args : --all -- --check
38
+ - run : cargo fmt --all -- --check
46
39
47
40
clippy :
48
41
name : cargo clippy -- -D warnings
54
47
- uses : actions/checkout@v4
55
48
- uses : dtolnay/rust-toolchain@stable
56
49
- run : rustup component add clippy
57
- - uses : actions-rs/cargo@v1
58
- with :
59
- command : clippy
60
- args : -- -D warnings
50
+ - run : cargo clippy -- -D warnings
61
51
62
52
coverage :
63
53
name : Code Coverage
94
84
- name : rust toolchain ~ install
95
85
uses : dtolnay/rust-toolchain@nightly
96
86
- name : Test
97
- uses : actions-rs/cargo@v1
98
- with :
99
- command : test
100
- args : ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
87
+ run : cargo test ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
101
88
env :
102
89
CARGO_INCREMENTAL : " 0"
103
90
RUSTC_WRAPPER : " "
You can’t perform that action at this time.
0 commit comments