File tree Expand file tree Collapse file tree 1 file changed +11
-23
lines changed Expand file tree Collapse file tree 1 file changed +11
-23
lines changed Original file line number Diff line number Diff line change @@ -15,40 +15,28 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4
19
19
20
- - uses : actions-rs/ toolchain@v1
20
+ - uses : dtolnay/rust- toolchain@stable
21
21
with :
22
- profile : minimal
23
- toolchain : stable
24
- override : true
22
+ components : rustfmt
25
23
26
- - run : rustup component add rustfmt
27
-
28
- - uses : actions-rs/cargo@v1
29
- with :
30
- command : fmt
31
- args : --all -- --check
24
+ - name : Rust rustfmt
25
+ run : cargo fmt --all -- --check
32
26
33
27
clippy :
34
28
name : clippy / nightly
35
29
runs-on : ubuntu-latest
36
30
37
31
steps :
38
- - uses : actions/checkout@v2
32
+ - uses : actions/checkout@v4
39
33
40
- - uses : actions-rs/ toolchain@v1
34
+ - uses : dtolnay/rust- toolchain@stable
41
35
with :
42
- profile : minimal
43
- toolchain : nightly
44
- override : true
36
+ components : clippy
45
37
46
- - run : rustup component add clippy
47
-
48
- - uses : actions-rs/cargo@v1
49
- with :
50
- command : clippy
51
- args : -- -D warnings
38
+ - name : Run clippy
39
+ run : cargo clippy -- -D warnings
52
40
53
41
test :
54
42
name : test / ${{ matrix.name }}
67
55
rust : 1.70
68
56
69
57
steps :
70
- - uses : actions/checkout@v2
58
+ - uses : actions/checkout@v4
71
59
72
60
- run : sudo $HOME/.cargo/bin/rustup default ${{ matrix.rust }}
73
61
You can’t perform that action at this time.
0 commit comments