abtesting.yml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # TODO(Swift 6): Re-enable these tests.
  2. # name: abtesting
  3. # on:
  4. # workflow_dispatch:
  5. # pull_request:
  6. # paths:
  7. # - 'FirebaseABTesting**'
  8. # - 'Interop/Analytics/Public/*.h'
  9. # - '.github/workflows/abtesting.yml'
  10. # - 'Gemfile*'
  11. # schedule:
  12. # # Run every day at 1am(PST) - cron uses UTC times
  13. # - cron: '0 9 * * *'
  14. # concurrency:
  15. # group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  16. # cancel-in-progress: true
  17. # jobs:
  18. # spm:
  19. # uses: ./.github/workflows/common.yml
  20. # with:
  21. # target: ABTestingUnit
  22. # catalyst:
  23. # uses: ./.github/workflows/common_catalyst.yml
  24. # with:
  25. # product: FirebaseABTesting
  26. # target: FirebaseABTesting-Unit-unit
  27. # pod-lib-lint:
  28. # # Don't run on private repo unless it is a PR.
  29. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  30. # strategy:
  31. # matrix:
  32. # include:
  33. # - os: macos-14
  34. # xcode: Xcode_16.2
  35. # target: ios
  36. # - os: macos-15
  37. # xcode: Xcode_16.2
  38. # target: ios
  39. # - os: macos-15
  40. # xcode: Xcode_16.2
  41. # target: tvos
  42. # - os: macos-15
  43. # xcode: Xcode_16.2
  44. # target: macos
  45. # - os: macos-15
  46. # xcode: Xcode_16.2
  47. # target: watchos
  48. # runs-on: ${{ matrix.os }}
  49. # steps:
  50. # - uses: actions/checkout@v4
  51. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  52. # - name: Setup Bundler
  53. # run: scripts/setup_bundler.sh
  54. # - name: Xcode
  55. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  56. # - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
  57. # with:
  58. # timeout_minutes: 120
  59. # max_attempts: 3
  60. # retry_on: error
  61. # retry_wait_seconds: 120
  62. # command: scripts/pod_lib_lint.rb FirebaseABTesting.podspec --platforms=${{ matrix.target }}
  63. # quickstart:
  64. # # Don't run on private repo unless it is a PR.
  65. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  66. # env:
  67. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  68. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  69. # runs-on: macos-15
  70. # steps:
  71. # - uses: actions/checkout@v4
  72. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  73. # - name: Xcode
  74. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  75. # - name: Setup quickstart
  76. # env:
  77. # LEGACY: true
  78. # run: scripts/setup_quickstart.sh abtesting
  79. # - name: Install Secret GoogleService-Info.plist
  80. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  81. # quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  82. # - name: Test swift quickstart
  83. # env:
  84. # LEGACY: true
  85. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh ABTesting true)
  86. # quickstart-ftl-cron-only:
  87. # # Don't run on private repo.
  88. # if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
  89. # env:
  90. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  91. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  92. # runs-on: macos-15
  93. # steps:
  94. # - uses: actions/checkout@v4
  95. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  96. # - uses: actions/setup-python@v5
  97. # with:
  98. # python-version: '3.11'
  99. # - name: Setup quickstart
  100. # env:
  101. # LEGACY: true
  102. # run: scripts/setup_quickstart.sh abtesting
  103. # - name: Install Secret GoogleService-Info.plist
  104. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  105. # quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  106. # - name: Xcode
  107. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  108. # - name: Build swift quickstart
  109. # env:
  110. # LEGACY: true
  111. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh ABTesting)
  112. # - id: ftl_test
  113. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  114. # with:
  115. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  116. # testapp_dir: quickstart-ios/build-for-testing
  117. # test_type: "xctest"
  118. # abtesting-cron-only:
  119. # # Don't run on private repo.
  120. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  121. # runs-on: macos-15
  122. # strategy:
  123. # matrix:
  124. # target: [ios, tvos, macos]
  125. # flags: [
  126. # '--use-static-frameworks'
  127. # ]
  128. # needs: pod-lib-lint
  129. # steps:
  130. # - uses: actions/checkout@v4
  131. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  132. # - name: Setup Bundler
  133. # run: scripts/setup_bundler.sh
  134. # - name: Xcode
  135. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  136. # - name: PodLibLint ABTesting Cron
  137. # run: |
  138. # scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
  139. # FirebaseABTesting.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}