build.yaml 706 B

123456789101112131415161718192021222324252627282930
  1. name: build
  2. on: [push, pull_request]
  3. jobs:
  4. run-test:
  5. runs-on: self-hosted
  6. strategy:
  7. matrix:
  8. destination: [
  9. 'macOS',
  10. 'iOS Simulator,name=iPhone 15',
  11. 'tvOS Simulator,name=Apple TV',
  12. 'watchOS Simulator,name=Apple Watch Series 8 (41mm)'
  13. ]
  14. xcode: [
  15. '15.2',
  16. '15.3'
  17. ]
  18. steps:
  19. - uses: actions/checkout@v4
  20. - uses: ruby/setup-ruby@v1
  21. with:
  22. bundler-cache: true
  23. self-hosted: true
  24. - name: Run tests
  25. env:
  26. DESTINATION: platform=${{ matrix.destination }}
  27. XCODE_VERSION: ${{ matrix.xcode }}
  28. run: bundle exec fastlane test_ci