clippy.yaml 744 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Clippy
  2. on:
  3. push:
  4. branches: [ staging, trying, master ]
  5. pull_request:
  6. branches: [ master ]
  7. defaults:
  8. run:
  9. shell: bash
  10. env:
  11. CLIPPY_PARAMS: -W clippy::all -W clippy::pedantic -W clippy::nursery -W clippy::cargo
  12. jobs:
  13. clippy:
  14. name: Clippy
  15. runs-on: ubuntu-latest
  16. strategy:
  17. matrix:
  18. cargo_flags:
  19. - "--no-default-features"
  20. - "--all-features"
  21. steps:
  22. - name: Checkout source code
  23. uses: actions/checkout@v3
  24. - name: Install Rust toolchain
  25. uses: dtolnay/rust-toolchain@stable
  26. with:
  27. toolchain: stable
  28. components: clippy
  29. - name: Run clippy
  30. run: cargo clippy --all ${{ matrix.cargo_flags }} -- -D warnings