lint.yml 675 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Lint
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - ci
  7. pull_request:
  8. branches:
  9. - main
  10. env:
  11. CARGO_TERM_COLOR: always
  12. jobs:
  13. lint:
  14. runs-on: ubuntu-20.04
  15. steps:
  16. - uses: actions/checkout@v2
  17. - uses: actions-rs/toolchain@v1
  18. with:
  19. profile: minimal
  20. toolchain: nightly
  21. components: rustfmt, clippy
  22. - name: Check formatting
  23. run: cargo +nightly fmt --all -- --check
  24. - name: Run clippy
  25. run: |
  26. cargo +nightly clippy -p aya -- --deny warnings
  27. cargo +nightly clippy -p aya-gen -- --deny warnings
  28. cargo +nightly clippy -p xtask -- --deny warnings