Add a github action checking for clippy
This commit is contained in:
parent
b654808734
commit
14ec8d6760
1 changed files with 15 additions and 0 deletions
15
.github/workflows/rust-checks.yml
vendored
15
.github/workflows/rust-checks.yml
vendored
|
|
@ -24,3 +24,18 @@ jobs:
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
|
clippy:
|
||||||
|
name: Clippy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
components: clippy
|
||||||
|
|
||||||
|
- name: Run Clippy
|
||||||
|
run: cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue