rustfmt.yaml 468 B

123456789101112131415161718192021222324
  1. on:
  2. push:
  3. branches: [ staging, trying, master ]
  4. pull_request:
  5. name: Code formatting check
  6. jobs:
  7. fmt:
  8. name: Rustfmt
  9. runs-on: ubuntu-20.04
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions-rs/toolchain@v1
  13. with:
  14. profile: minimal
  15. toolchain: stable
  16. override: true
  17. components: rustfmt
  18. - uses: actions-rs/cargo@v1
  19. with:
  20. command: fmt
  21. args: --all -- --check