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.

45 lines
1002 B

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.54.0
  11. - 1.55.0
  12. - 1.56.0
  13. - 1.57.0
  14. - 1.58.1
  15. - 1.59.0
  16. - 1.60.0
  17. - 1.61.0
  18. - stable
  19. - beta
  20. - nightly
  21. steps:
  22. - uses: actions/checkout@v2
  23. - name: Install Rust ${{ matrix.rust }}
  24. uses: actions-rs/toolchain@v1
  25. with:
  26. toolchain: ${{ matrix.rust }}
  27. override: true
  28. profile: minimal
  29. - name: Run cargo build
  30. uses: actions-rs/cargo@v1
  31. with:
  32. command: build
  33. args: --verbose
  34. - name: Run cargo test
  35. uses: actions-rs/cargo@v1
  36. with:
  37. command: test
  38. args: --verbose
  39. cargo-deny:
  40. name: Check dependencies
  41. runs-on: ubuntu-latest
  42. steps:
  43. - uses: actions/checkout@v2
  44. - uses: EmbarkStudios/cargo-deny-action@v1