Skip to content

Commit

Permalink
add a clippy lint workflow (that screams at warnings)
Browse files Browse the repository at this point in the history
CI is gonna be red for a _while_ lmao
  • Loading branch information
meadowsys committed Jul 20, 2024
1 parent 34a4967 commit 2ac925e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: clippy
on:
workflow_call:

jobs:
run:
name: run
runs-on: macos-14

steps:
- name: checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: setup rust
run: rustc --version

- name: run clippy
run: cargo clippy --verbose --features all-unstable,all-addons --deny warnings
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
- name: test in release
run: cargo test --release --verbose --features all,all-addons

clippy:
uses: ./.github/workflows/clippy.yml

feature-check:
uses: ./.github/workflows/feature-check.yml

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:
files: target/coverage/*.lcov
token: ${{ secrets.CODECOV_TOKEN }}

clippy:
uses: ./.github/workflows/clippy.yml

feature-check:
uses: ./.github/workflows/feature-check.yml

Expand Down

0 comments on commit 2ac925e

Please sign in to comment.