File tree 1 file changed +10
-33
lines changed
1 file changed +10
-33
lines changed Original file line number Diff line number Diff line change @@ -15,62 +15,39 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout sources
18
- uses : actions/checkout@v2
18
+ uses : actions/checkout@v4
19
19
20
20
- name : Install stable toolchain
21
- uses : actions-rs/toolchain@v1
22
- with :
23
- profile : minimal
24
- toolchain : stable
25
- override : true
21
+ uses : dtolnay/rust-toolchain@stable
26
22
27
23
- name : Run cargo check
28
- uses : actions-rs/cargo@v1
29
- with :
30
- command : check
24
+ run : cargo check
31
25
32
26
test :
33
27
name : Tests
34
28
runs-on : ubuntu-latest
35
29
steps :
36
30
- name : Checkout sources
37
- uses : actions/checkout@v2
31
+ uses : actions/checkout@v4
38
32
39
33
- name : Install stable toolchain
40
- uses : actions-rs/toolchain@v1
41
- with :
42
- profile : minimal
43
- toolchain : stable
44
- override : true
34
+ uses : dtolnay/rust-toolchain@stable
45
35
46
36
- name : Run cargo test
47
- uses : actions-rs/cargo@v1
48
- with :
49
- command : test
37
+ run : cargo test
50
38
51
39
lints :
52
40
name : Lints
53
41
runs-on : ubuntu-latest
54
42
steps :
55
43
- name : Checkout sources
56
- uses : actions/checkout@v2
44
+ uses : actions/checkout@v4
57
45
58
46
- name : Install stable toolchain
59
- uses : actions-rs/toolchain@v1
60
- with :
61
- profile : minimal
62
- toolchain : stable
63
- override : true
64
- components : rustfmt, clippy
47
+ uses : dtolnay/rust-toolchain@stable
65
48
66
49
- name : Run cargo fmt
67
- uses : actions-rs/cargo@v1
68
- with :
69
- command : fmt
70
- args : --all -- --check
50
+ run : cargo fmt --all -- --check
71
51
72
52
- name : Run cargo clippy
73
- uses : actions-rs/cargo@v1
74
- with :
75
- command : clippy
76
- args : -- -D warnings
53
+ run : cargo clippy -- -D warnings
You can’t perform that action at this time.
0 commit comments