File tree Expand file tree Collapse file tree 2 files changed +61
-7
lines changed Expand file tree Collapse file tree 2 files changed +61
-7
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,67 @@ name: Rust
3
3
on : [push]
4
4
5
5
jobs :
6
- build :
6
+ check :
7
+ name : Check
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout sources
11
+ uses : actions/checkout@v1
12
+
13
+ - name : Install stable toolchain
14
+ uses : actions-rs/toolchain@v1
15
+ with :
16
+ profile : minimal
17
+ toolchain : stable
18
+ override : true
7
19
20
+ - name : Run cargo check
21
+ uses : actions-rs/cargo@v1
22
+ with :
23
+ command : check
24
+
25
+ test :
26
+ name : Test Suite
8
27
runs-on : ubuntu-latest
28
+ steps :
29
+ - name : Checkout sources
30
+ uses : actions/checkout@v1
31
+
32
+ - name : Install stable toolchain
33
+ uses : actions-rs/toolchain@v1
34
+ with :
35
+ profile : minimal
36
+ toolchain : stable
37
+ override : true
9
38
39
+ - name : Run cargo test
40
+ uses : actions-rs/cargo@v1
41
+ with :
42
+ command : test
43
+
44
+ lints :
45
+ name : Lints
46
+ runs-on : ubuntu-latest
10
47
steps :
11
- - uses : actions/checkout@v1
12
- - name : Build
13
- run : cargo build --verbose
14
- - name : Run tests
15
- run : cargo test --verbose
48
+ - name : Checkout sources
49
+ uses : actions/checkout@v1
50
+
51
+ - name : Install stable toolchain
52
+ uses : actions-rs/toolchain@v1
53
+ with :
54
+ profile : minimal
55
+ toolchain : stable
56
+ override : true
57
+ components : rustfmt, clippy
58
+
59
+ - name : Run cargo fmt
60
+ uses : actions-rs/cargo@v1
61
+ with :
62
+ command : fmt
63
+ args : --all -- --check
64
+
65
+ - name : Run cargo clippy
66
+ uses : actions-rs/cargo@v1
67
+ with :
68
+ command : clippy
69
+ args : -- -D warnings
Original file line number Diff line number Diff line change 3
3
#![ no_std]
4
4
5
5
#[ deny( missing_docs) ]
6
- #[ cfg_attr ( feature = "cargo-clippy" , deny( clippy) ) ]
6
+ #[ deny( clippy:: all ) ]
7
7
8
8
/// Possible errors returned by the API.
9
9
#[ derive( Debug , Copy , Clone ) ]
You can’t perform that action at this time.
0 commit comments