@@ -17,37 +17,28 @@ jobs:
17
17
strategy :
18
18
matrix :
19
19
os : [ubuntu-latest, windows-latest, macOS-latest]
20
- rust : [stable ]
20
+ backend : [h1_client, hyper_client, curl_client ]
21
21
22
22
steps :
23
23
- uses : actions/checkout@master
24
24
25
- - name : Install ${{ matrix.rust }}
26
- uses : actions-rs/toolchain@v1
27
- with :
28
- toolchain : ${{ matrix.rust }}
29
- override : true
30
-
31
25
- 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 }}'
42
27
43
28
- 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 }}'
48
30
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
51
42
runs-on : ubuntu-latest
52
43
steps :
53
44
- uses : actions/checkout@master
@@ -58,13 +49,16 @@ jobs:
58
49
profile : minimal
59
50
toolchain : nightly
60
51
override : true
61
- components : rustfmt
52
+ components : clippy, rustfmt
53
+
54
+ - name : clippy
55
+ run : cargo clippy --all-targets --workspace --features=docs
62
56
63
57
- name : fmt
64
58
run : cargo fmt --all -- --check
65
59
66
- - name : Docs
67
- run : cargo doc
60
+ - name : docs
61
+ run : cargo doc --no-deps --features=docs
68
62
69
63
check_wasm :
70
64
name : Check wasm targets
0 commit comments