pr.yaml 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.8.0, stable]
  11. steps:
  12. - name: Rust install
  13. uses: actions-rs/toolchain@v1
  14. with:
  15. toolchain: ${{ matrix.rust }}
  16. profile: minimal
  17. override: true
  18. - name: Checkout
  19. uses: actions/checkout@v2
  20. - name: Build
  21. uses: actions-rs/cargo@v1
  22. with:
  23. command: build
  24. - name: Test
  25. run: ./ci/test_full.sh
  26. fmt:
  27. name: Format
  28. runs-on: ubuntu-latest
  29. steps:
  30. - name: Rust install
  31. uses: actions-rs/toolchain@v1
  32. with:
  33. toolchain: 1.42.0
  34. profile: minimal
  35. override: true
  36. components: rustfmt
  37. - name: Checkout
  38. uses: actions/checkout@v2
  39. - name: Check formatting
  40. uses: actions-rs/cargo@v1
  41. with:
  42. command: fmt
  43. args: --all -- --check