test.yaml 827 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: test
  2. defaults:
  3. run:
  4. shell: bash -leo pipefail {0}
  5. on: [push, pull_request]
  6. concurrency:
  7. group: ${{ github.head_ref || github.run_id }}
  8. cancel-in-progress: true
  9. jobs:
  10. run-tests:
  11. runs-on: self-hosted
  12. continue-on-error: true
  13. strategy:
  14. matrix:
  15. destination: [
  16. 'macOS',
  17. 'iOS Simulator,name=iPhone 15',
  18. 'tvOS Simulator,name=Apple TV',
  19. 'watchOS Simulator,name=Apple Watch Series 9 (41mm)'
  20. ]
  21. xcode: [
  22. '15.4',
  23. '16.1',
  24. ]
  25. steps:
  26. - uses: actions/checkout@v4
  27. - name: Install Gems
  28. run: bundle install
  29. - name: Run tests
  30. env:
  31. DESTINATION: platform=${{ matrix.destination }}
  32. XCODE_VERSION: ${{ matrix.xcode }}
  33. run: bundle exec fastlane test_ci