Skip to content

Commit

Permalink
Add clippy to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
spacebear21 committed Nov 7, 2024
1 parent db0c9e3 commit d55656e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,20 @@ jobs:
- run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
- name: fmt check
run: cargo fmt --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Use caching"
uses: Swatinem/[email protected]
- name: "Install nightly toolchain"
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: "Install clippy"
run: rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu
- name: "Run linting"
run: cargo clippy -- -D warnings

0 comments on commit d55656e

Please sign in to comment.