File tree 1 file changed +68
-0
lines changed
1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ on : [push, pull_request]
2
+
3
+ name : Rust CI
4
+
5
+ jobs :
6
+ check :
7
+ name : Check
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ - uses : actions-rs/toolchain@v1
12
+ with :
13
+ profile : minimal
14
+ toolchain : stable
15
+ override : true
16
+ - uses : Swatinem/rust-cache@v1
17
+ - uses : actions-rs/cargo@v1
18
+ with :
19
+ command : check
20
+
21
+ test :
22
+ name : Test Suite
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v2
26
+ - uses : actions-rs/toolchain@v1
27
+ with :
28
+ profile : minimal
29
+ toolchain : stable
30
+ override : true
31
+ - uses : Swatinem/rust-cache@v1
32
+ - uses : actions-rs/cargo@v1
33
+ with :
34
+ command : test
35
+
36
+ fmt :
37
+ name : Rustfmt
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - uses : actions/checkout@v2
41
+ - uses : actions-rs/toolchain@v1
42
+ with :
43
+ profile : minimal
44
+ toolchain : stable
45
+ override : true
46
+ - uses : Swatinem/rust-cache@v1
47
+ - run : rustup component add rustfmt
48
+ - uses : actions-rs/cargo@v1
49
+ with :
50
+ command : fmt
51
+ args : --all -- --check
52
+
53
+ # clippy:
54
+ # name: Clippy
55
+ # runs-on: ubuntu-latest
56
+ # steps:
57
+ # - uses: actions/checkout@v2
58
+ # - uses: actions-rs/toolchain@v1
59
+ # with:
60
+ # profile: minimal
61
+ # toolchain: stable
62
+ # override: true
63
+ # - uses: Swatinem/rust-cache@v1
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