Merge pull request #15 from SpoticordMusic/add-clippy-check

Create cargo-clippy.yml
main
DaXcess 2023-06-08 16:33:50 +02:00 committed by GitHub
commit 665a01d154
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