pr.yaml 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. args: --verbose
  25. - name: Test
  26. run: ./ci/test_full.sh
  27. fmt:
  28. name: Format
  29. runs-on: ubuntu-latest
  30. steps:
  31. - name: Rust install
  32. uses: actions-rs/toolchain@v1
  33. with:
  34. toolchain: 1.42.0
  35. profile: minimal
  36. override: true
  37. components: rustfmt
  38. - name: Checkout
  39. uses: actions/checkout@v2
  40. - name: Check formatting
  41. uses: actions-rs/cargo@v1
  42. with:
  43. command: fmt
  44. args: --all -- --check