Skip to content

Commit

Permalink
ci: use giraffate/clippy-action for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Nov 10, 2023
1 parent 5b2085f commit 7aeeb9a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Lint

on: [pull_request]

permissions: { contents: read }
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -24,6 +25,10 @@ jobs:
run: cargo fmt --all -- --check

clippy:
permissions:
contents: read
checks: write # to add clippy checks to PR diffs

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -34,7 +39,13 @@ jobs:
components: clippy

- name: Check with Clippy
run: cargo clippy --workspace --tests --all-features -- -A unknown_lints -D clippy::dbg_macro
uses: giraffate/[email protected]
with:
reporter: github-pr-check
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: >-
--workspace --all-features --tests --examples --bins --
-A unknown_lints -D clippy::todo -D clippy::dbg_macro
public-api-diff:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7aeeb9a

Please sign in to comment.