Skip to content

Commit 743221d

Browse files
authored
Merge pull request #239 from Fishrock123/ci-clippy-reduce
ci: only run clippy as part of fmt
2 parents a12d503 + c56db63 commit 743221d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
uses: actions-rs/toolchain@v1
2727
with:
2828
toolchain: ${{ matrix.rust }}
29-
components: clippy
3029
override: true
3130

3231
- name: check
@@ -41,20 +40,14 @@ jobs:
4140
command: check
4241
args: --all --benches --bins --examples --tests --features "hyperium_http,unstable"
4342

44-
- name: clippy
45-
uses: actions-rs/cargo@v1
46-
with:
47-
command: clippy
48-
args: --tests --examples -- -D warnings
49-
5043
- name: tests
5144
uses: actions-rs/cargo@v1
5245
with:
5346
command: test
5447
args: --all --features "hyperium_http,unstable"
5548

5649
check_fmt_and_docs:
57-
name: Checking fmt and docs
50+
name: Checking fmt, clippy, and docs
5851
runs-on: ubuntu-latest
5952
steps:
6053
- uses: actions/checkout@master
@@ -64,6 +57,9 @@ jobs:
6457
components: rustfmt, clippy
6558
override: true
6659

60+
- name: clippy
61+
run: cargo clippy --tests --examples -- -D warnings
62+
6763
- name: fmt
6864
run: cargo fmt --all -- --check
6965

0 commit comments

Comments
 (0)