test.yaml 775 B

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