test.yaml 900 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: test
  2. defaults:
  3. run:
  4. shell: bash -leo pipefail {0}
  5. on:
  6. push:
  7. branches:
  8. - master
  9. pull_request:
  10. types: [opened, synchronize, reopened]
  11. concurrency:
  12. group: ${{ github.workflow }}-${{ github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  15. run-tests:
  16. runs-on: self-hosted
  17. strategy:
  18. matrix:
  19. destination: [
  20. 'macOS',
  21. 'iOS Simulator,name=iPhone 16,OS=26.0',
  22. 'tvOS Simulator,name=Apple TV,OS=26.0',
  23. 'watchOS Simulator,name=Apple Watch Series 10 (42mm),OS=26.0'
  24. ]
  25. xcode: [
  26. '16.4',
  27. '26.2',
  28. ]
  29. steps:
  30. - uses: actions/checkout@v4
  31. - name: Install Gems
  32. run: bundle install
  33. - name: Run tests
  34. env:
  35. DESTINATION: platform=${{ matrix.destination }}
  36. XCODE_VERSION: ${{ matrix.xcode }}
  37. run: bundle exec fastlane test_ci