test.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. include:
  20. - xcode: '16.4'
  21. destination: 'macOS'
  22. - xcode: '16.4'
  23. destination: 'iOS Simulator,name=iPhone 16,OS=18.5'
  24. - xcode: '16.4'
  25. destination: 'tvOS Simulator,name=Apple TV 4K (3rd generation),OS=18.5'
  26. - xcode: '16.4'
  27. destination: 'watchOS Simulator,name=Apple Watch Series 10 (42mm),OS=11.5'
  28. - xcode: '26.2'
  29. destination: 'macOS'
  30. - xcode: '26.2'
  31. destination: 'iOS Simulator,name=iPhone 17,OS=26.2'
  32. - xcode: '26.2'
  33. destination: 'tvOS Simulator,name=Apple TV 4K (3rd generation),OS=26.2'
  34. - xcode: '26.2'
  35. destination: 'watchOS Simulator,name=Apple Watch Series 11 (42mm),OS=26.2'
  36. steps:
  37. - uses: actions/checkout@v4
  38. - name: Install Gems
  39. run: bundle install
  40. - name: Run tests
  41. env:
  42. DESTINATION: platform=${{ matrix.destination }}
  43. XCODE_VERSION: ${{ matrix.xcode }}
  44. FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: '60'
  45. FASTLANE_XCODEBUILD_SETTINGS_RETRIES: '4'
  46. run: bundle exec fastlane test_ci