clippy.yml 703 B

1234567891011121314151617181920212223242526
  1. on:
  2. push:
  3. branches: [ staging, trying ]
  4. pull_request_target:
  5. name: Clippy check
  6. jobs:
  7. clippy:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. if: github.event_name == 'pull_request_target'
  12. with:
  13. ref: refs/pull/${{ github.event.number }}/head
  14. - uses: actions/checkout@v2
  15. if: github.event_name != 'pull_request_target'
  16. - uses: actions-rs/toolchain@v1
  17. with:
  18. profile: minimal
  19. toolchain: 1.53.0
  20. override: true
  21. components: clippy
  22. - uses: actions-rs/clippy-check@v1
  23. with:
  24. token: ${{ secrets.GITHUB_TOKEN }}
  25. args: --tests --examples -- -D warnings