Run Clippy for Linting #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |