rustfmt.yml 436 B

1234567891011121314151617181920
  1. on: [push, pull_request]
  2. name: Code formatting check
  3. jobs:
  4. fmt:
  5. name: Rustfmt
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v2
  9. - uses: actions-rs/toolchain@v1
  10. with:
  11. profile: minimal
  12. toolchain: stable
  13. override: true
  14. - run: rustup component add rustfmt
  15. - uses: actions-rs/cargo@v1
  16. with:
  17. command: fmt
  18. args: --all -- --check