clippy.yml 582 B

12345678910111213141516171819202122
  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. env:
  10. RUSTUP_TOOLCHAIN: stable
  11. steps:
  12. - uses: actions/checkout@v2
  13. if: github.event_name == 'pull_request_target'
  14. with:
  15. ref: refs/pull/${{ github.event.number }}/head
  16. - uses: actions/checkout@v2
  17. if: github.event_name != 'pull_request_target'
  18. - uses: actions-rs/clippy-check@v1
  19. with:
  20. token: ${{ secrets.GITHUB_TOKEN }}
  21. args: --tests --examples -- -D warnings