File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ name : General CI
2+
3+ on : [push, pull_request]
4+
5+ env :
6+ CARGO_TERM_COLOR : always
7+
8+ jobs :
9+ test :
10+ name : Test
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : actions-rs/toolchain@v1
15+ with :
16+ profile : minimal
17+ toolchain : stable
18+ - uses : actions-rs/cargo@v1
19+ with :
20+ command : test
21+
22+ fmt :
23+ name : Rustfmt
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v2
27+ - uses : actions-rs/toolchain@v1
28+ with :
29+ toolchain : stable
30+ override : true
31+ components : rustfmt
32+ - uses : actions-rs/cargo@v1
33+ with :
34+ command : fmt
35+ args : --all -- --check
36+
37+ clippy :
38+ name : Clippy
39+ runs-on : ubuntu-latest
40+ steps :
41+ - uses : actions/checkout@v2
42+ - uses : actions-rs/toolchain@v1
43+ with :
44+ toolchain : stable
45+ override : true
46+ components : clippy
47+ - uses : actions-rs/clippy-check@v1
48+ with :
49+ token : ${{ secrets.GITHUB_TOKEN }}
50+ args : -- -D warnings
51+
52+ coverage :
53+ name : Coverage
54+ runs-on : ubuntu-latest
55+ steps :
56+ - name : Checkout repository
57+ uses : actions/checkout@v2
58+
59+ - name : Install stable toolchain
60+ uses : actions-rs/toolchain@v1
61+ with :
62+ toolchain : stable
63+ override : true
64+
65+ - name : Run cargo-tarpaulin
66+ uses :
actions-rs/[email protected] 67+ with :
68+ version : " 0.18.0-alpha3"
69+ args : ' --ignore-tests --avoid-cfg-tarpaulin'
You can’t perform that action at this time.
0 commit comments