4
0

lint.yml 652 B

1234567891011121314151617181920212223242526272829303132333435363738
  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@v3
  17. - uses: dtolnay/rust-toolchain@master
  18. with:
  19. toolchain: nightly
  20. components: rustfmt, clippy, miri, rust-src
  21. - name: Check formatting
  22. run: |
  23. cargo fmt --all -- --check
  24. - name: Run clippy
  25. run: |
  26. cargo clippy --workspace --exclude integration-test -- --deny warnings
  27. - name: Run miri
  28. run: |
  29. cargo miri test --all-targets