Create cargo-clippy.yml

main
DaXcess 2023-06-08 16:32:38 +02:00 committed by GitHub
parent bdf7b8507a
commit 28b9e89356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
name: Cargo Clippy
on:
pull_request:
branches:
- main
jobs:
clippy:
name: Run Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run Cargo Clippy
run: cargo clippy --all-targets --all-features -- -D warnings