fmt.yml 403 B

1234567891011121314151617181920
  1. name: format check
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. cargo_fmt_check:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: setup cargo
  13. run: |
  14. curl https://sh.rustup.rs -sSf | sh -s -- -y
  15. # - name: cargo fmt check
  16. # run: |
  17. # export PATH="$HOME/.cargo/bin:$PATH"
  18. # cargo fmt -- --check