4
0

lint.yml 864 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: |
  24. cargo +nightly fmt --all -- --check
  25. pushd bpf
  26. cargo +nightly fmt --all -- --check
  27. popd
  28. - name: Run clippy
  29. run: |
  30. cargo +nightly clippy -p aya -- --deny warnings
  31. cargo +nightly clippy -p aya-gen -- --deny warnings
  32. cargo +nightly clippy -p xtask -- --deny warnings
  33. pushd bpf
  34. cargo +nightly clippy -p aya-bpf -- --deny warnings
  35. popd