File tree 1 file changed +10
-14
lines changed
1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on :
3
3
push :
4
- branches : [ main ]
4
+ branches : [main]
5
5
pull_request :
6
- branches : [ '*' ]
6
+ branches : ["*" ]
7
7
8
- concurrency :
8
+ concurrency :
9
9
group : ${{ github.head_ref || github.run_id }}
10
10
cancel-in-progress : true
11
11
@@ -17,15 +17,13 @@ jobs:
17
17
- name : Checkout sources
18
18
uses : actions/checkout@v3
19
19
20
- - name : Install stable toolchain
21
- uses : actions-rs/ toolchain@v1
20
+ - name : Rustup toolchain install
21
+ uses : dtolnay/rust- toolchain@stable
22
22
with :
23
- profile : minimal
24
23
toolchain : stable
25
- override : true
26
24
27
25
- name : Run cargo check
28
- uses : actions-rs/cargo@v1
26
+ uses : dtolnay/rust-toolchain@stable
29
27
with :
30
28
command : check
31
29
lint :
@@ -36,19 +34,17 @@ jobs:
36
34
uses : actions/checkout@v3
37
35
38
36
- name : Install stable toolchain
39
- uses : actions-rs/ toolchain@v1
37
+ uses : dtolnay/rust- toolchain@stable
40
38
with :
41
- profile : minimal
42
39
toolchain : stable
43
- override : true
44
40
components : rustfmt, clippy
45
41
46
42
- name : Run cargo fmt
47
- uses : actions-rs/cargo@v1
43
+ uses : dtolnay/rust-toolchain@stable
48
44
with :
49
45
command : fmt
50
46
args : --all -- --check
51
-
47
+
52
48
- name : Run clippy
53
49
run : make clippy
54
50
test :
58
54
CARGO_TERM_COLOR : always
59
55
steps :
60
56
- uses : actions/checkout@v3
61
- - uses : actions-rs/ toolchain@v1
57
+ - uses : dtolnay/rust- toolchain@stable
62
58
with :
63
59
toolchain : stable
64
60
components : clippy
You can’t perform that action at this time.
0 commit comments