rust-clippy.yml at [1497d5f02f]
Logged in as anonymous

File .github/workflows/rust-clippy.yml artifact 589584ce6a part of check-in 1497d5f02f


name: rust-clippy analyze

on: push

# Make sure CI fails on all warnings, including Clippy lints
env:
  RUSTFLAGS: "-Dwarnings"

jobs:
  rust-clippy-test:
    name: Run rust-clippy analyzing
    runs-on: ubuntu-latest
    permissions:
      contents: read
      security-events: write
    steps:
      - name: Checkout code
        uses: actions/checkout@v6

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable

      - uses: Swatinem/rust-cache@v2

      - name: Run tests
        run: cargo test --all-targets --all-features

      - name: Run rust-clippy
        run: cargo clippy --all-targets --all-features