macos.yml 852 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: macOS tests
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - packages/**
  8. - examples/**
  9. - src/**
  10. - .github/**
  11. - lib.rs
  12. - Cargo.toml
  13. pull_request:
  14. types: [opened, synchronize, reopened, ready_for_review]
  15. branches:
  16. - master
  17. paths:
  18. - packages/**
  19. - examples/**
  20. - src/**
  21. - .github/**
  22. - lib.rs
  23. - Cargo.toml
  24. jobs:
  25. test:
  26. if: github.event.pull_request.draft == false
  27. name: Test Suite
  28. runs-on: macos-latest
  29. steps:
  30. - uses: actions/checkout@v2
  31. - uses: actions-rs/toolchain@v1
  32. with:
  33. profile: minimal
  34. toolchain: stable
  35. override: true
  36. - uses: Swatinem/rust-cache@v1
  37. - uses: actions-rs/cargo@v1
  38. with:
  39. command: test
  40. args: --features "desktop, ssr, router"