1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 17:22:57 +01:00

ci: use giraffate/clippy-action for clippy

This commit is contained in:
Rob Ede 2023-11-10 14:06:23 +00:00
parent 5b2085f414
commit 7aeeb9a445
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -2,7 +2,8 @@ name: Lint
on: [pull_request]
permissions: { contents: read }
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@ -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
@ -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/clippy-action@v1.0.1
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