File tree Expand file tree Collapse file tree 2 files changed +87
-16
lines changed
Expand file tree Collapse file tree 2 files changed +87
-16
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+
9+ env :
10+ RUSTFLAGS : -Dwarnings
11+
12+ jobs :
13+ lints :
14+ name : Linting and Tests
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ with :
20+ submodules : recursive
21+
22+ - uses : actions-rs/toolchain@v1
23+ with :
24+ profile : minimal
25+ toolchain : stable
26+ override : true
27+ components : rustfmt, clippy
28+
29+ - uses : Swatinem/rust-cache@v1
30+
31+ - name : Cargo fmt
32+ uses : actions-rs/cargo@v1
33+ with :
34+ command : fmt
35+ args : --all -- --check
36+
37+ - name : Cargo clippy
38+ uses : actions-rs/cargo@v1
39+ with :
40+ command : clippy
41+ args : --all-features --tests -- -D clippy::all
42+
43+ all_features :
44+ name : Tests (all features)
45+ runs-on : ubuntu-latest
46+
47+ steps :
48+ - uses : actions/checkout@v2
49+ with :
50+ submodules : recursive
51+
52+ - uses : actions-rs/toolchain@v1
53+ with :
54+ profile : minimal
55+ toolchain : stable
56+ override : true
57+
58+ - uses : Swatinem/rust-cache@v1
59+
60+ - name : Cargo test
61+ uses : actions-rs/cargo@v1
62+ with :
63+ command : test
64+ args : --all-features
65+
66+ no_features :
67+ name : Tests (no default features)
68+ runs-on : ubuntu-latest
69+
70+ steps :
71+ - uses : actions/checkout@v2
72+ with :
73+ submodules : recursive
74+
75+ - uses : actions-rs/toolchain@v1
76+ with :
77+ profile : minimal
78+ toolchain : stable
79+ override : true
80+
81+ - uses : Swatinem/rust-cache@v1
82+
83+ - name : Cargo test
84+ uses : actions-rs/cargo@v1
85+ with :
86+ command : test
87+ args : --no-default-features
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments