Skip to content

Commit

Permalink
Add GitHub Actions clippy job
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Mar 27, 2024
1 parent 714e385 commit d1d6f2f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,16 @@ 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:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1.2.0
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- run: rustup component add clippy
- name: Clippy check
run: cargo clippy -- -D warnings

0 comments on commit d1d6f2f

Please sign in to comment.