From c189fb4b813fe4855cdcbbaad1e2442920cf8567 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Thu, 4 Jan 2024 11:52:57 -0800 Subject: [PATCH] ci: switch to manual clippy task due to bug in clippy-action --- .github/workflows/lint.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index f19f9779..44e6dd01 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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