Skip to content

Run Clippy for Linting #3

Run Clippy for Linting

Run Clippy for Linting #3

name: "Run Clippy for Linting"
on:
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0'
jobs:
clippy:
name: Run clippy on azure-init
runs-on: ubuntu-latest
strategy:
matrix:
rust-toolchain: [stable, stable 12 months ago]
steps:
- name: Install libudev
run: |
sudo apt update
sudo apt install -y libudev-dev
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust-toolchain}}
components: clippy
- name: Run clippy
run: cargo clippy --all-targets --all-features --verbose -- --deny warnings