messaging.yml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. name: messaging
  2. permissions:
  3. contents: read
  4. on:
  5. workflow_dispatch:
  6. pull_request:
  7. paths:
  8. # Messaging sources
  9. - 'FirebaseMessaging/**'
  10. # Interop headers
  11. - 'Interop/Analytics/Public/*.h'
  12. # Podspec
  13. - 'FirebaseMessaging.podspec'
  14. # This file
  15. - '.github/workflows/messaging.yml'
  16. # Re-usable workflows being used by this file.
  17. - '.github/workflows/common.yml'
  18. - '.github/workflows/common_cocoapods.yml'
  19. - '.github/workflows/common_catalyst.yml'
  20. - '.github/workflows/common_quickstart.yml'
  21. - '.github/workflows/common_cocoapods_cron.yml'
  22. # Rebuild on Ruby infrastructure changes
  23. - 'Gemfile*'
  24. schedule:
  25. # Run every day at 11pm (PDT) / 2am (EDT) - cron uses UTC times
  26. - cron: '0 6 * * *'
  27. concurrency:
  28. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  29. cancel-in-progress: true
  30. jobs:
  31. # spm:
  32. # uses: ./.github/workflows/common.yml
  33. # with:
  34. # target: MessagingUnit
  35. # buildonly_platforms: tvOS, macOS, watchOS, catalyst, visionOS
  36. # catalyst:
  37. # uses: ./.github/workflows/common_catalyst.yml
  38. # with:
  39. # product: FirebaseMessaging
  40. # target: FirebaseMessaging-Unit-unit
  41. # pod_lib_lint:
  42. # strategy:
  43. # matrix:
  44. # product: [FirebaseMessagingInterop, FirebaseMessaging]
  45. # uses: ./.github/workflows/common_cocoapods.yml
  46. # with:
  47. # product: ${{ matrix.product }}
  48. # # TODO(#12205) Update the build.sh script for this job from "test" instead of "build"
  49. # messaging-integration-tests:
  50. # # Don't run on private repo unless it is a PR.
  51. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  52. # env:
  53. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  54. # runs-on: macos-15
  55. # steps:
  56. # - uses: actions/checkout@v4
  57. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  58. # with:
  59. # cache_key: integration
  60. # - name: Configure test keychain
  61. # run: scripts/configure_test_keychain.sh
  62. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  63. # - name: Xcode
  64. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  65. # - name: Setup Bundler
  66. # run: scripts/setup_bundler.sh
  67. # - name: Install xcpretty
  68. # run: gem install xcpretty
  69. # - name: Install Secret GoogleService-Info.plist
  70. # run: |
  71. # mkdir FirebaseMessaging/Tests/IntegrationTests/Resources
  72. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  73. # FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist "$plist_secret"
  74. # - name: BuildAndTest
  75. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Messaging all)
  76. quickstart:
  77. uses: ./.github/workflows/common_quickstart.yml
  78. with:
  79. product: Messaging
  80. setup_command: scripts/setup_quickstart_spm.sh messaging
  81. plist_src_path: scripts/gha-encrypted/qs-messaging.plist.gpg
  82. plist_dst_path: quickstart-ios/messaging/GoogleService-Info.plist
  83. run_tests: false
  84. secrets:
  85. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  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. # runs-on: macos-15
  92. # steps:
  93. # - uses: actions/checkout@v4
  94. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  95. # - uses: actions/setup-python@v5
  96. # with:
  97. # python-version: '3.11'
  98. # - name: Xcode
  99. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  100. # - name: Setup quickstart
  101. # run: scripts/setup_quickstart.sh messaging
  102. # - name: Install Secret GoogleService-Info.plist
  103. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  104. # quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  105. # - name: Build objc quickstart
  106. # run: ([ -z $plist_secret ] ||
  107. # scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Messaging)
  108. # - name: Build swift quickstart
  109. # run: ([ -z $plist_secret ] ||
  110. # scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Messaging swift)
  111. # - id: ftl_test
  112. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  113. # with:
  114. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  115. # testapp_dir: quickstart-ios/build-for-testing
  116. # test_type: "xctest"
  117. # messaging-cron-only:
  118. # uses: ./.github/workflows/common_cocoapods_cron.yml
  119. # with:
  120. # product: FirebaseMessaging
  121. # platforms: '[ "ios", "tvos", "macos --skip-tests", "watchos --skip-tests" ]'
  122. # flags: '[ "--use-static-frameworks" ]'
  123. # messaging-sample-build-test:
  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. # runs-on: macos-15
  129. # steps:
  130. # - uses: actions/checkout@v4
  131. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  132. # with:
  133. # cache_key: sample${{ matrix.os }}
  134. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  135. # - name: Xcode
  136. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  137. # - name: Setup Bundler
  138. # run: scripts/setup_bundler.sh
  139. # - name: Install Secret GoogleService-Info.plist
  140. # run: |
  141. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  142. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  143. # - name: Prereqs
  144. # run: scripts/install_prereqs.sh MessagingSample iOS
  145. # - name: Build
  146. # run: ([ -z $plist_secret ] || scripts/build.sh MessagingSample iOS)
  147. # messaging-swiftui-sample-build-test:
  148. # # Don't run on private repo unless it is a PR.
  149. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  150. # env:
  151. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  152. # runs-on: macos-15
  153. # steps:
  154. # - uses: actions/checkout@v4
  155. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  156. # with:
  157. # cache_key: sample${{ matrix.os }}
  158. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  159. # - name: Setup Bundler
  160. # run: scripts/setup_bundler.sh
  161. # - name: Install Secret GoogleService-Info.plist
  162. # run: |
  163. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  164. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  165. # - name: Prereqs
  166. # run: scripts/install_prereqs.sh SwiftUISample iOS
  167. # - name: Xcode
  168. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  169. # - name: Build
  170. # run: ([ -z $plist_secret ] || scripts/build.sh SwiftUISample iOS)
  171. # messaging-watchos-standalone-sample-build-test:
  172. # # Don't run on private repo unless it is a PR.
  173. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  174. # env:
  175. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  176. # runs-on: macos-15
  177. # steps:
  178. # - uses: actions/checkout@v4
  179. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  180. # with:
  181. # cache_key: watch-sample${{ matrix.os }}
  182. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  183. # - name: Setup Bundler
  184. # run: scripts/setup_bundler.sh
  185. # - name: Install Secret GoogleService-Info.plist
  186. # run: |
  187. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  188. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  189. # - name: Prereqs
  190. # run: scripts/install_prereqs.sh MessagingSampleStandaloneWatchApp watchOS
  191. # - name: Xcode
  192. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  193. # - name: Build
  194. # run: ([ -z $plist_secret ] || scripts/build.sh MessagingSampleStandaloneWatchApp watchOS)
  195. # - name: Upload xcodebuild logs
  196. # if: failure()
  197. # uses: actions/upload-artifact@v4
  198. # with:
  199. # name: xcodebuild-logs-${{ matrix.target }}
  200. # path: xcodebuild-*.log