tests.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. on:
  2. push:
  3. branches:
  4. - main
  5. paths:
  6. - '**.rs'
  7. - '**/Cargo.toml'
  8. workflow_dispatch:
  9. pull_request:
  10. paths:
  11. - '**.rs'
  12. - '**/Cargo.toml'
  13. name: Tests
  14. jobs:
  15. tests:
  16. name: Integration tests
  17. runs-on: ubuntu-latest
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: Install stable toolchain
  21. uses: actions-rs/toolchain@v1
  22. with:
  23. profile: minimal
  24. toolchain: stable
  25. override: true
  26. components: rustfmt
  27. - name: Run cargo test
  28. uses: actions-rs/cargo@v1
  29. with:
  30. command: test
  31. benches:
  32. name: Compile benchmarks
  33. runs-on: ubuntu-latest
  34. steps:
  35. - uses: actions/checkout@v2
  36. - name: Install stable toolchain
  37. uses: actions-rs/toolchain@v1
  38. with:
  39. profile: minimal
  40. toolchain: stable
  41. override: true
  42. components: rustfmt
  43. - name: Run cargo check
  44. uses: actions-rs/cargo@v1
  45. with:
  46. command: check
  47. args: -p bench --benches