Skip to content

Commit

Permalink
ci: Add clippy job
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed May 10, 2024
1 parent 8715445 commit 94df647
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,20 @@ jobs:
run: |
echo '.rs files are not formatted correctly'
echo 'Please run `cargo fmt --all`'
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: List version
run: |
cargo --version
cargo clippy --version
- name: Cargo clippy
run: cargo clippy -- -D warnings
- name: Cargo clippy failure info
if: failure()
run: |
echo '`cargo clippy` failed'
echo 'Please fix the issue generated by clippy'

0 comments on commit 94df647

Please sign in to comment.