lint.yml 698 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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, miri, rust-src
  22. override: true
  23. - name: Check formatting
  24. run: |
  25. cargo fmt --all -- --check
  26. - name: Run clippy
  27. run: |
  28. cargo clippy --workspace --exclude integration-test -- --deny warnings
  29. - name: Run miri
  30. run: |
  31. cargo miri test --all-targets