macos.yml 680 B

123456789101112131415161718192021222324252627282930313233343536
  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: dtolnay/rust-toolchain@stable
  31. - uses: Swatinem/rust-cache@v2
  32. - uses: actions/checkout@v3
  33. - run: cargo test --all --tests