2023-06-08 16:32:38 +02:00
|
|
|
name: Cargo Clippy
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-06-08 16:38:46 +02:00
|
|
|
- dev
|
2023-06-08 16:32:38 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
clippy:
|
|
|
|
name: Run Clippy
|
|
|
|
runs-on: ubuntu-latest
|
2024-08-12 16:14:24 +02:00
|
|
|
|
2023-06-08 16:32:38 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2024-08-12 16:14:24 +02:00
|
|
|
|
2023-06-08 16:32:38 +02:00
|
|
|
- name: Set up Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
2024-08-12 16:14:24 +02:00
|
|
|
|
2023-06-08 16:32:38 +02:00
|
|
|
- name: Run Cargo Clippy
|
|
|
|
run: cargo clippy --all-targets --all-features -- -D warnings
|