tests.yml 475 B

123456789101112131415161718192021222324
  1. on:
  2. push:
  3. branches:
  4. - main
  5. workflow_dispatch:
  6. pull_request:
  7. name: Tests
  8. jobs:
  9. tests:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Install stable toolchain
  14. uses: actions-rs/toolchain@v1
  15. with:
  16. profile: minimal
  17. toolchain: stable
  18. override: true
  19. components: rustfmt
  20. - name: Run cargo test
  21. uses: actions-rs/cargo@v1
  22. with:
  23. command: test