@@ -17,37 +17,28 @@ jobs:
1717 strategy :
1818 matrix :
1919 os : [ubuntu-latest, windows-latest, macOS-latest]
20- rust : [stable ]
20+ backend : [h1_client, hyper_client, curl_client ]
2121
2222 steps :
2323 - uses : actions/checkout@master
2424
25- - name : Install ${{ matrix.rust }}
26- uses : actions-rs/toolchain@v1
27- with :
28- toolchain : ${{ matrix.rust }}
29- override : true
30-
3125 - name : check
32- uses : actions-rs/cargo@v1
33- with :
34- command : check
35- args : --all --bins --examples
36-
37- - name : check unstable
38- uses : actions-rs/cargo@v1
39- with :
40- command : check
41- args : --all --benches --bins --examples --tests
26+ run : cargo check --all-targets --workspace --no-default-features --features '${{ matrix.backend }}'
4227
4328 - name : tests
44- uses : actions-rs/cargo@v1
45- with :
46- command : test
47- args : --all
29+ run : cargo test --all-targets --workspace --no-default-features --features '${{ matrix.backend }}'
4830
49- check_fmt_and_docs :
50- name : Checking fmt and docs
31+ check_no_features :
32+ name : Checking without default features
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@master
36+
37+ - name : check
38+ run : cargo check --no-default-features
39+
40+ clippy_fmt_docs :
41+ name : Running clippy & fmt & docs
5142 runs-on : ubuntu-latest
5243 steps :
5344 - uses : actions/checkout@master
@@ -58,13 +49,16 @@ jobs:
5849 profile : minimal
5950 toolchain : nightly
6051 override : true
61- components : rustfmt
52+ components : clippy, rustfmt
53+
54+ - name : clippy
55+ run : cargo clippy --all-targets --workspace --features=docs
6256
6357 - name : fmt
6458 run : cargo fmt --all -- --check
6559
66- - name : Docs
67- run : cargo doc
60+ - name : docs
61+ run : cargo doc --no-deps --features=docs
6862
6963 check_wasm :
7064 name : Check wasm targets
0 commit comments