auth.yml 8.6 KB

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