Skip to content

Commit a312ebf

Browse files
committed
ci: improvements
- run on "main" - really check everything - move to non-deprecated --workspace from --all - reduce unecessary actions-rs usage - really clippy everything - docs without deps
1 parent de7afbb commit a312ebf

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 14 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,39 @@ 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
55+
56+
- name: nightly setup
57+
run: |
58+
rustup toolchain install nightly
59+
rustup default nightly
5960
6061
- name: clippy
61-
run: cargo clippy --tests --examples -- -D warnings
62+
run: cargo clippy --workspace --benches --bins --examples --tests --features "hyperium_http,unstable" -- -D warnings
6263

6364
- name: fmt
6465
run: cargo fmt --all -- --check
6566

66-
- name: Docs
67-
run: cargo doc
67+
- name: docs
68+
run: cargo doc --no-deps
6869

6970
# check_wasm:
7071
# name: Check wasm targets

0 commit comments

Comments
 (0)