Skip to content

Commit

Permalink
ci: switch to manual clippy task due to bug in clippy-action
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmc88 committed Jan 5, 2024
1 parent 15a3c50 commit 083e9bd
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,14 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust_toolchain }}
components: clippy

- name: Run Cargo Clippy
uses: giraffate/clippy-action@v1
with:
tool_name: Clippy
clippy_flags: --locked --profile ${{ matrix.cargo_profile }} --all-targets -- -D warnings
reporter: ${{ github.event_name == 'pull_request' && 'github-pr-review' || 'github-check' }}
github_token: ${{ secrets.GITHUB_TOKEN }}
filter_mode: nofilter
fail_on_error: true
run: cargo clippy --locked --profile ${{ matrix.cargo_profile }} --all-targets -- -D warnings

- name: Run Cargo Clippy (--features nightly)
if: matrix.rust_toolchain == 'nightly'
uses: giraffate/clippy-action@v1
with:
tool_name: Clippy (--features nightly)
clippy_flags: --locked --profile ${{ matrix.cargo_profile }} --all-targets --features nightly -- -D warnings
reporter: ${{ github.event_name == 'pull_request' && 'github-pr-review' || 'github-check' }}
github_token: ${{ secrets.GITHUB_TOKEN }}
filter_mode: nofilter
fail_on_error: true
run: cargo clippy --locked --profile ${{ matrix.cargo_profile }} --all-targets --features nightly -- -D warnings

udeps:
name: Detect Unused Cargo Dependencies
Expand Down

0 comments on commit 083e9bd

Please sign in to comment.