Skip to content

Commit aa1beeb

Browse files
authored
Merge pull request #275 from Fishrock123/ci-improvements
ci improvements
2 parents 746f551 + 932a676 commit aa1beeb

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7+
- main
78
- staging
89
- trying
910

@@ -32,39 +33,34 @@ jobs:
3233
uses: actions-rs/cargo@v1
3334
with:
3435
command: check
35-
args: --all --bins --examples --features hyperium_http
36+
args: --workspace --benches --bins --examples --tests --features hyperium_http
3637

3738
- name: check unstable
3839
uses: actions-rs/cargo@v1
3940
with:
40-
command: check
41-
args: --all --benches --bins --examples --tests --features "hyperium_http,unstable"
41+
command: check
42+
args: --workspace --benches --bins --examples --tests --features "hyperium_http,unstable"
4243

4344
- name: tests
4445
uses: actions-rs/cargo@v1
4546
with:
4647
command: test
47-
args: --all --features "hyperium_http,unstable"
48+
args: --workspace --features "hyperium_http,unstable"
4849

49-
check_fmt_and_docs:
50+
check_fmt_clippy_docs:
5051
name: Checking fmt, clippy, and docs
5152
runs-on: ubuntu-latest
5253
steps:
5354
- uses: actions/checkout@master
54-
- uses: actions-rs/toolchain@v1
55-
with:
56-
toolchain: nightly
57-
components: rustfmt, clippy
58-
override: true
5955

6056
- name: clippy
61-
run: cargo clippy --tests --examples -- -D warnings
57+
run: cargo clippy --workspace --benches --bins --examples --tests --features "hyperium_http,unstable" -- -D warnings
6258

6359
- name: fmt
6460
run: cargo fmt --all -- --check
6561

66-
- name: Docs
67-
run: cargo doc
62+
- name: docs
63+
run: cargo doc --no-deps
6864

6965
# check_wasm:
7066
# name: Check wasm targets

0 commit comments

Comments
 (0)