tests.yml 579 B

123456789101112131415161718192021222324252627282930
  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. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Install stable toolchain
  20. uses: actions-rs/toolchain@v1
  21. with:
  22. profile: minimal
  23. toolchain: stable
  24. override: true
  25. components: rustfmt
  26. - name: Run cargo test
  27. uses: actions-rs/cargo@v1
  28. with:
  29. command: test