test.yaml 824 B

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