You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
945 B

3 years ago
3 years ago
3 years ago
  1. name: ci
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. name: Test
  6. runs-on: ubuntu-latest
  7. strategy:
  8. matrix:
  9. rust:
  10. - 1.59.0
  11. - 1.60.0
  12. - 1.61.0
  13. - 1.62.1
  14. - 1.63.0
  15. - stable
  16. - beta
  17. - nightly
  18. steps:
  19. - uses: actions/checkout@v3
  20. - name: Install Rust ${{ matrix.rust }}
  21. uses: actions-rs/toolchain@v1
  22. with:
  23. toolchain: ${{ matrix.rust }}
  24. override: true
  25. profile: minimal
  26. - name: Run cargo build
  27. uses: actions-rs/cargo@v1
  28. with:
  29. command: build
  30. args: --verbose
  31. - name: Run cargo test
  32. uses: actions-rs/cargo@v1
  33. with:
  34. command: test
  35. args: --verbose
  36. cargo-deny:
  37. name: Check dependencies
  38. runs-on: ubuntu-latest
  39. steps:
  40. - uses: actions/checkout@v3
  41. - uses: EmbarkStudios/cargo-deny-action@v1