auth.yml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. # TODO(Swift 6): Re-enable these tests.
  2. # name: auth
  3. # on:
  4. # workflow_dispatch:
  5. # pull_request:
  6. # paths:
  7. # - 'FirebaseAuth**'
  8. # - 'FirebaseAuth/Interop/*.h'
  9. # - '.github/workflows/auth.yml'
  10. # - 'scripts/gha-encrypted/AuthSample/SwiftApplication.plist.gpg'
  11. # - 'Gemfile*'
  12. # schedule:
  13. # # Run every day at 1am (PST) - cron uses UTC times
  14. # - cron: '0 9 * * *'
  15. # env:
  16. # FIREBASE_CI: true
  17. # concurrency:
  18. # group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  19. # cancel-in-progress: true
  20. # jobs:
  21. # spm:
  22. # uses: ./.github/workflows/common.yml
  23. # with:
  24. # target: AuthUnit
  25. # buildonly_platforms: macOS
  26. # catalyst:
  27. # uses: ./.github/workflows/common_catalyst.yml
  28. # with:
  29. # product: FirebaseAuth
  30. # target: FirebaseAuth-Unit-unit
  31. # buildonly: true
  32. # pod-lib-lint:
  33. # # Don't run on private repo unless it is a PR.
  34. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  35. # strategy:
  36. # matrix:
  37. # podspec: [FirebaseAuthInterop.podspec, FirebaseAuth.podspec]
  38. # target: [ios, tvos, macos --skip-tests, watchos]
  39. # os: [macos-15]
  40. # xcode: [Xcode_16.3]
  41. # runs-on: ${{ matrix.os }}
  42. # steps:
  43. # - uses: actions/checkout@v4
  44. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  45. # - name: Setup Bundler
  46. # run: scripts/setup_bundler.sh
  47. # - name: Configure test keychain
  48. # run: scripts/configure_test_keychain.sh
  49. # - name: Xcode
  50. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  51. # - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
  52. # with:
  53. # timeout_minutes: 120
  54. # max_attempts: 3
  55. # retry_on: error
  56. # retry_wait_seconds: 120
  57. # command: scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} ${{ matrix.tests }}
  58. # spm-package-resolved:
  59. # env:
  60. # FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  61. # runs-on: macos-15
  62. # outputs:
  63. # cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
  64. # steps:
  65. # - uses: actions/checkout@v4
  66. # - name: Xcode
  67. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  68. # - name: Generate Swift Package.resolved
  69. # id: swift_package_resolve
  70. # run: |
  71. # swift package resolve
  72. # - name: Generate cache key
  73. # id: generate_cache_key
  74. # run: |
  75. # cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
  76. # echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
  77. # - uses: actions/cache/save@v4
  78. # id: cache
  79. # with:
  80. # path: .build
  81. # key: ${{ steps.generate_cache_key.outputs.cache_key }}
  82. # integration-tests:
  83. # # Don't run on private repo unless it is a PR.
  84. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  85. # needs: [spm-package-resolved]
  86. # strategy:
  87. # matrix:
  88. # scheme: [ObjCApiTests, SwiftApiTests, AuthenticationExampleUITests]
  89. # env:
  90. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  91. # FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  92. # runs-on: macos-15
  93. # steps:
  94. # - uses: actions/checkout@v4
  95. # - uses: actions/cache/restore@v4
  96. # with:
  97. # path: .build
  98. # key: ${{needs.spm-package-resolved.outputs.cache_key}}
  99. # - name: Install Secrets
  100. # run: |
  101. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthCredentials.h.gpg \
  102. # FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AuthCredentials.h "$plist_secret"
  103. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/SwiftApplication.plist.gpg \
  104. # FirebaseAuth/Tests/SampleSwift/AuthenticationExample/SwiftApplication.plist "$plist_secret"
  105. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/AuthCredentials.h.gpg \
  106. # FirebaseAuth/Tests/SampleSwift/AuthCredentials.h "$plist_secret"
  107. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info.plist.gpg \
  108. # FirebaseAuth/Tests/SampleSwift/GoogleService-Info.plist "$plist_secret"
  109. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/GoogleService-Info_multi.plist.gpg \
  110. # FirebaseAuth/Tests/SampleSwift/GoogleService-Info_multi.plist "$plist_secret"
  111. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Sample.entitlements.gpg \
  112. # FirebaseAuth/Tests/SampleSwift/Sample.entitlements "$plist_secret"
  113. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Credentials.swift.gpg \
  114. # FirebaseAuth/Tests/SampleSwift/SwiftApiTests/Credentials.swift "$plist_secret"
  115. # - name: Xcode
  116. # run: sudo xcode-select -s /Applications/Xcode_16.3.app/Contents/Developer
  117. # - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
  118. # with:
  119. # timeout_minutes: 120
  120. # max_attempts: 3
  121. # retry_on: error
  122. # retry_wait_seconds: 120
  123. # command: ([ -z $plist_secret ] || scripts/build.sh Auth iOS ${{ matrix.scheme }})
  124. # quickstart:
  125. # # Don't run on private repo unless it is a PR.
  126. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  127. # env:
  128. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  129. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  130. # runs-on: macos-15
  131. # steps:
  132. # - uses: actions/checkout@v4
  133. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  134. # - name: Setup quickstart
  135. # run: scripts/setup_quickstart.sh authentication
  136. # - name: Install Secret GoogleService-Info.plist
  137. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  138. # quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  139. # - name: Test swift quickstart
  140. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication false)
  141. # # TODO(@sunmou99): currently have issue with this job, will re-enable it once the issue resolved.
  142. # # quickstart-ftl-cron-only:
  143. # # # Don't run on private repo.
  144. # # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  145. # env:
  146. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  147. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  148. # runs-on: macos-14
  149. # steps:
  150. # - uses: actions/checkout@v4
  151. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  152. # - uses: actions/setup-python@v5
  153. # with:
  154. # python-version: '3.11'
  155. # - name: Setup quickstart
  156. # run: scripts/setup_quickstart.sh authentication
  157. # - name: Install Secret GoogleService-Info.plist
  158. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  159. # quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  160. # - name: Build swift quickstart
  161. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Authentication)
  162. # - id: ftl_test
  163. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  164. # with:
  165. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  166. # testapp_dir: quickstart-ios/build-for-testing
  167. # test_type: "xctest"
  168. # auth-cron-only:
  169. # # Don't run on private repo.
  170. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  171. # runs-on: macos-15
  172. # strategy:
  173. # matrix:
  174. # # The macos and tvos tests can hang, and watchOS doesn't have tests.
  175. # target: [ios, tvos --skip-tests, macos --skip-tests, watchos --skip-tests]
  176. # flags: [
  177. # '--use-static-frameworks'
  178. # ]
  179. # needs: pod-lib-lint
  180. # steps:
  181. # - uses: actions/checkout@v4
  182. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  183. # - name: Setup Bundler
  184. # run: scripts/setup_bundler.sh
  185. # - name: Configure test keychain
  186. # run: scripts/configure_test_keychain.sh
  187. # - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
  188. # with:
  189. # timeout_minutes: 120
  190. # max_attempts: 3
  191. # retry_on: error
  192. # retry_wait_seconds: 120
  193. # command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}