pr.yaml 567 B

1234567891011121314151617181920212223242526272829
  1. name: PR
  2. on:
  3. pull_request:
  4. jobs:
  5. test:
  6. name: Test
  7. runs-on: ubuntu-latest
  8. strategy:
  9. matrix:
  10. rust: [1.31.0, stable]
  11. steps:
  12. - uses: actions/checkout@v3
  13. - uses: dtolnay/rust-toolchain@master
  14. with:
  15. toolchain: ${{ matrix.rust }}
  16. - run: cargo build
  17. - run: ./ci/test_full.sh
  18. fmt:
  19. name: Format
  20. runs-on: ubuntu-latest
  21. steps:
  22. - uses: dtolnay/[email protected]
  23. with:
  24. components: rustfmt
  25. - uses: actions/checkout@v3
  26. - run: cargo fmt --all --check