File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request :
3
+ push :
4
+ branches :
5
+ - main
6
+
7
+ name : Continuous integration
8
+
9
+ jobs :
10
+ check :
11
+ name : Cargo Check
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - uses : actions-rs/toolchain@v1
16
+ with :
17
+ profile : minimal
18
+ toolchain : stable
19
+ override : true
20
+ - uses : actions-rs/cargo@v1
21
+ with :
22
+ command : check
23
+
24
+ test :
25
+ name : Test Suite
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - uses : actions-rs/toolchain@v1
30
+ with :
31
+ profile : minimal
32
+ toolchain : stable
33
+ override : true
34
+ - uses : actions-rs/cargo@v1
35
+ with :
36
+ command : test
37
+
38
+ fmt :
39
+ name : Rustfmt
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - uses : actions/checkout@v2
43
+ - uses : actions-rs/toolchain@v1
44
+ with :
45
+ profile : minimal
46
+ toolchain : stable
47
+ override : true
48
+ - run : rustup component add rustfmt
49
+ - uses : actions-rs/cargo@v1
50
+ with :
51
+ command : fmt
52
+ args : --all -- --check
53
+
54
+ clippy :
55
+ name : Clippy
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - uses : actions/checkout@v2
59
+ - uses : actions-rs/toolchain@v1
60
+ with :
61
+ profile : minimal
62
+ toolchain : stable
63
+ override : true
64
+ - run : rustup component add clippy
65
+ - uses : actions-rs/cargo@v1
66
+ with :
67
+ command : clippy
68
+ args : -- -D warnings
You can’t perform that action at this time.
0 commit comments