Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: only run clippy as part of fmt #239

Merged
merged 1 commit into from
Sep 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: clippy
override: true

- name: check
Expand All @@ -41,20 +40,14 @@ jobs:
command: check
args: --all --benches --bins --examples --tests --features "hyperium_http,unstable"

- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --tests --examples -- -D warnings

- name: tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all --features "hyperium_http,unstable"

check_fmt_and_docs:
name: Checking fmt and docs
name: Checking fmt, clippy, and docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand All @@ -64,6 +57,9 @@ jobs:
components: rustfmt, clippy
override: true

- name: clippy
run: cargo clippy --tests --examples -- -D warnings

- name: fmt
run: cargo fmt --all -- --check

Expand Down