clippy.yaml 888 B

12345678910111213141516171819202122232425262728293031323334
  1. on:
  2. push:
  3. branches: [ staging, trying, master ]
  4. pull_request:
  5. merge_group:
  6. name: Clippy lints
  7. env:
  8. CLIPPY_PARAMS: -W clippy::all -W clippy::pedantic -W clippy::nursery -W clippy::cargo
  9. jobs:
  10. clippy:
  11. name: Clippy
  12. strategy:
  13. matrix:
  14. toolchain: [ stable, nightly ]
  15. cargo_flags:
  16. - "--no-default-features"
  17. - "--all-features"
  18. include:
  19. # Nightly is only for reference and allowed to fail
  20. - toolchain: nightly
  21. experimental: true
  22. runs-on: ubuntu-latest
  23. continue-on-error: ${{ matrix.experimental || false }}
  24. steps:
  25. - uses: actions/checkout@v3
  26. - uses: dtolnay/rust-toolchain@master
  27. with:
  28. toolchain: ${{ matrix.toolchain }}
  29. components: clippy
  30. - name: Run clippy
  31. run: cargo clippy --all ${{ matrix.cargo_flags }} -- -D warnings