File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
13
13
name : " Rustfmt"
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v3
16
+ - uses : actions/checkout@v4
17
17
18
18
- name : Cache cargo files
19
- uses : actions/cache@v3
19
+ uses : actions/cache@v4
20
20
with :
21
21
path : |
22
22
~/.cargo/bin/
@@ -27,21 +27,18 @@ jobs:
27
27
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28
28
29
29
- name : Rustfmt
30
- uses : actions-rs/cargo@v1
31
- with :
32
- command : fmt
33
- args : -- --check
30
+ run : cargo fmt -- --check
34
31
35
32
# Run clippy and tests. We just use the native target here and hope the results
36
33
# are the same for all others
37
34
lint-test :
38
35
name : Lint
39
36
runs-on : ubuntu-latest
40
37
steps :
41
- - uses : actions/checkout@v3
38
+ - uses : actions/checkout@v4
42
39
43
40
- name : Cache Rust files
44
- uses : actions/cache@v3
41
+ uses : actions/cache@v4
45
42
with :
46
43
path : |
47
44
~/.cargo/bin/
@@ -52,18 +49,15 @@ jobs:
52
49
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
53
50
54
51
- name : Clippy
55
- uses : actions-rs/cargo@v1
56
- with :
57
- command : clippy
58
- args : --all-targets --all-features -- -D clippy::all'
52
+ run : cargo clippy --all-targets --all-features -- -D clippy::all
59
53
test :
60
54
name : Test
61
55
runs-on : ubuntu-latest
62
56
steps :
63
- - uses : actions/checkout@v3
57
+ - uses : actions/checkout@v4
64
58
65
59
- name : Cache Rust files
66
- uses : actions/cache@v3
60
+ uses : actions/cache@v4
67
61
with :
68
62
path : |
69
63
~/.cargo/bin/
77
71
run : sudo apt-get install -y zsh fish
78
72
79
73
- name : Run tests
80
- uses : actions-rs/cargo@v1
81
- with :
82
- command : test
74
+ run : cargo test
You can’t perform that action at this time.
0 commit comments