@@ -15,18 +15,15 @@ jobs:
15
15
runs-on : ${{ matrix.platform }}
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4
19
19
- name : Install ${{ matrix.toolchain }} toolchain
20
- uses : actions-rs/ toolchain@v1
20
+ uses : dtolnay/rust- toolchain@stable
21
21
with :
22
22
profile : minimal
23
23
toolchain : ${{ matrix.toolchain }}
24
- override : true
25
24
26
25
- name : Run cargo check
27
- uses : actions-rs/cargo@v1
28
- with :
29
- command : check
26
+ run : cargo check
30
27
31
28
test :
32
29
name : Test Suite
@@ -37,46 +34,33 @@ jobs:
37
34
runs-on : ${{ matrix.platform }}
38
35
steps :
39
36
- name : Checkout sources
40
- uses : actions/checkout@v2
37
+ uses : actions/checkout@v4
41
38
with :
42
39
submodules : true
43
40
44
41
- name : Install ${{ matrix.toolchain }} toolchain
45
- uses : actions-rs/ toolchain@v1
42
+ uses : dtolnay/rust- toolchain@stable
46
43
with :
47
- profile : minimal
48
44
toolchain : ${{ matrix.toolchain }}
49
- override : true
50
45
51
46
- name : Run cargo test
52
- uses : actions-rs/cargo@v1
53
- with :
54
- command : test
55
- args : --test geoip
47
+ run : cargo test --test geoip
56
48
57
49
lints :
58
50
name : Lints
59
51
runs-on : ubuntu-latest
60
52
steps :
61
53
- name : Checkout sources
62
- uses : actions/checkout@v2
54
+ uses : actions/checkout@v4
63
55
64
56
- name : Install stable toolchain
65
- uses : actions-rs/ toolchain@v1
57
+ uses : dtolnay/rust- toolchain@stable
66
58
with :
67
- profile : minimal
68
59
toolchain : stable
69
- override : true
70
60
components : rustfmt, clippy
71
61
72
62
- name : Run cargo fmt
73
- uses : actions-rs/cargo@v1
74
- with :
75
- command : fmt
76
- args : --all -- --check
63
+ run : cargo fmt --all --check
77
64
78
65
- name : Run cargo clippy
79
- uses : actions-rs/cargo@v1
80
- with :
81
- command : clippy
82
- args : -- -D warnings
66
+ run : cargo clippy -- -D warnings
0 commit comments