lint.yml 455 B

123456789101112131415161718192021222324252627282930
  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. build:
  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