lint.yml 817 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {{{{raw}}}}
  2. name: Clippy
  3. on:
  4. push:
  5. branches:
  6. - main
  7. pull_request:
  8. branches:
  9. - main
  10. - dev
  11. jobs:
  12. clippy:
  13. runs-on: ubuntu-latest
  14. strategy:
  15. fail-fast: false
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: install webkit2gtk
  19. run: |
  20. sudo apt-get update
  21. sudo apt-get install -y webkit2gtk-4.0
  22. - name: Install clippy with stable toolchain
  23. uses: actions-rs/toolchain@v1
  24. with:
  25. profile: minimal
  26. toolchain: stable
  27. override: true
  28. components: clippy
  29. - uses: actions-rs/clippy-check@v1
  30. with:
  31. token: ${{ secrets.GITHUB_TOKEN }}
  32. args: --manifest-path=Cargo.toml --all-targets --all-features -- -D warnings
  33. name: clippy
  34. {{{{/raw}}}}