Skip to content

Commit

Permalink
ci: rename lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Nov 10, 2023
1 parent 989548e commit f565572
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/clippy-fmt.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,31 @@ jobs:
toolchain: nightly
components: rustfmt

- run: cargo fmt --all -- --check
- name: Check with rustfmt
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

- uses: actions-rust-lang/[email protected]
- name: Install Rust
uses: actions-rust-lang/[email protected]
with:
components: clippy

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

0 comments on commit f565572

Please sign in to comment.