messaging.yml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. # TODO(Swift 6): Re-enable these tests.
  2. # name: messaging
  3. # on:
  4. # workflow_dispatch:
  5. # pull_request:
  6. # paths:
  7. # # Messaging sources
  8. # - 'FirebaseMessaging/**'
  9. # # Interop headers
  10. # - 'Interop/Analytics/Public/*.h'
  11. # # Podspec
  12. # - 'FirebaseMessaging.podspec'
  13. # # This file
  14. # - '.github/workflows/messaging.yml'
  15. # # Rebuild on Ruby infrastructure changes
  16. # - 'Gemfile*'
  17. # schedule:
  18. # # Run every day at 10pm (PST) - cron uses UTC times
  19. # - cron: '0 6 * * *'
  20. # concurrency:
  21. # group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  22. # cancel-in-progress: true
  23. # jobs:
  24. # spm:
  25. # uses: ./.github/workflows/common.yml
  26. # with:
  27. # target: MessagingUnit
  28. # buildonly_platforms: tvOS, macOS, watchOS, catalyst, visionOS
  29. # catalyst:
  30. # uses: ./.github/workflows/common_catalyst.yml
  31. # with:
  32. # product: FirebaseMessaging
  33. # target: FirebaseMessaging-Unit-unit
  34. <<<<<<< HEAD
  35. # # TODO(#12205) Update the build.sh script for this job from "test" instead of "build"
  36. # messaging-integration-tests:
  37. # # Don't run on private repo unless it is a PR.
  38. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  39. # env:
  40. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  41. # runs-on: macos-15
  42. # steps:
  43. # - uses: actions/checkout@v4
  44. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  45. # with:
  46. # cache_key: integration
  47. # - name: Configure test keychain
  48. # run: scripts/configure_test_keychain.sh
  49. # - uses: ruby/setup-ruby@v1
  50. # - name: Setup Bundler
  51. # run: scripts/setup_bundler.sh
  52. # - name: Install xcpretty
  53. # run: gem install xcpretty
  54. # - name: Install Secret GoogleService-Info.plist
  55. # run: |
  56. # mkdir FirebaseMessaging/Tests/IntegrationTests/Resources
  57. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  58. # FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist "$plist_secret"
  59. # - name: Xcode
  60. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  61. # - name: BuildAndTest
  62. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Messaging all)
  63. # pod-lib-lint:
  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. # strategy:
  67. # matrix:
  68. # podspec: [FirebaseMessagingInterop.podspec, FirebaseMessaging.podspec]
  69. # target: [ios, tvos, macos --skip-tests, watchos --skip-tests] # skipping tests on mac because of keychain access
  70. # build-env:
  71. # - os: macos-15
  72. # xcode: Xcode_16.2
  73. # tests: --test-specs=unit
  74. # runs-on: ${{ matrix.build-env.os }}
  75. # steps:
  76. # - uses: actions/checkout@v4
  77. # - uses: ruby/setup-ruby@v1
  78. # - name: Setup Bundler
  79. # run: scripts/setup_bundler.sh
  80. # - name: Xcode
  81. # run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  82. # - name: Build and test
  83. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} ${{ matrix.build-env.tests }} --platforms=${{ matrix.target }}
  84. # spm-package-resolved:
  85. # env:
  86. # FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  87. # runs-on: macos-15
  88. # outputs:
  89. # cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
  90. # steps:
  91. # - uses: actions/checkout@v4
  92. # - name: Generate Swift Package.resolved
  93. # id: swift_package_resolve
  94. # run: |
  95. # swift package resolve
  96. # - name: Generate cache key
  97. # id: generate_cache_key
  98. # run: |
  99. # cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
  100. # echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
  101. # - uses: actions/cache/save@v4
  102. # id: cache
  103. # with:
  104. # path: .build
  105. # key: ${{ steps.generate_cache_key.outputs.cache_key }}
  106. # spm:
  107. # # Don't run on private repo unless it is a PR.
  108. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  109. # needs: [spm-package-resolved]
  110. # strategy:
  111. # matrix:
  112. # include:
  113. # - os: macos-15
  114. # xcode: Xcode_16.2
  115. # target: iOS spm
  116. # - os: macos-15
  117. # xcode: Xcode_16.2
  118. # target: tvOS spmbuildonly
  119. # - os: macos-15
  120. # xcode: Xcode_16.2
  121. # target: macOS spmbuildonly
  122. # - os: macos-15
  123. # xcode: Xcode_16.2
  124. # target: watchOS spmbuildonly
  125. # - os: macos-15
  126. # xcode: Xcode_16.2
  127. # target: catalyst spmbuildonly
  128. # - os: macos-15
  129. # xcode: Xcode_16.2
  130. # target: visionOS spmbuildonly
  131. # runs-on: ${{ matrix.os }}
  132. # steps:
  133. # - uses: actions/checkout@v4
  134. # - uses: actions/cache/restore@v4
  135. # with:
  136. # path: .build
  137. # key: ${{needs.spm-package-resolved.outputs.cache_key}}
  138. # - name: Initialize xcodebuild
  139. # run: scripts/setup_spm_tests.sh
  140. # - name: Xcode
  141. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  142. # - name: Unit Tests
  143. # run: scripts/third_party/travis/retry.sh ./scripts/build.sh MessagingUnit ${{ matrix.target }}
  144. # catalyst:
  145. # # Don't run on private repo unless it is a PR.
  146. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  147. # runs-on: macos-15
  148. # steps:
  149. # - uses: actions/checkout@v4
  150. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  151. # with:
  152. # cache_key: catalyst${{ matrix.os }}
  153. # - uses: ruby/setup-ruby@v1
  154. # - name: Setup Bundler
  155. # run: scripts/setup_bundler.sh
  156. # - name: Setup project and Build Catalyst
  157. # run: scripts/test_catalyst.sh FirebaseMessaging test FirebaseMessaging-Unit-unit
  158. # quickstart:
  159. # # Don't run on private repo unless it is a PR.
  160. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  161. # env:
  162. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  163. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  164. # strategy:
  165. # matrix:
  166. # include:
  167. # - os: macos-15
  168. # xcode: Xcode_16.2
  169. # runs-on: ${{ matrix.os }}
  170. # steps:
  171. # - uses: actions/checkout@v4
  172. # - uses: ruby/setup-ruby@v1
  173. # - name: Setup quickstart
  174. # run: scripts/setup_quickstart.sh messaging
  175. # - name: Install Secret GoogleService-Info.plist
  176. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  177. # quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  178. # - name: Xcode
  179. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  180. # - name: Test objc quickstart
  181. # run: ([ -z $plist_secret ] ||
  182. # scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false)
  183. # - name: Test swift quickstart
  184. # run: ([ -z $plist_secret ] ||
  185. # scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false swift)
  186. # quickstart-ftl-cron-only:
  187. # # Don't run on private repo.
  188. # if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
  189. # env:
  190. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  191. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  192. # runs-on: macos-15
  193. # steps:
  194. # - uses: actions/checkout@v4
  195. # - uses: ruby/setup-ruby@v1
  196. # - uses: actions/setup-python@v5
  197. # with:
  198. # python-version: '3.11'
  199. # - name: Setup quickstart
  200. # run: scripts/setup_quickstart.sh messaging
  201. # - name: Install Secret GoogleService-Info.plist
  202. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  203. # quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  204. # - name: Build objc quickstart
  205. # run: ([ -z $plist_secret ] ||
  206. # scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Messaging)
  207. # - name: Build swift quickstart
  208. # run: ([ -z $plist_secret ] ||
  209. # scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Messaging swift)
  210. # - id: ftl_test
  211. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  212. # with:
  213. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  214. # testapp_dir: quickstart-ios/build-for-testing
  215. # test_type: "xctest"
  216. # messaging-cron-only:
  217. # # Don't run on private repo.
  218. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  219. # strategy:
  220. # matrix:
  221. # target: [ios, tvos, macos --skip-tests, watchos --skip-tests]
  222. # os: [macos-15]
  223. # include:
  224. # - os: macos-15
  225. # xcode: Xcode_16.2
  226. # tests: --test-specs=unit
  227. # runs-on: ${{ matrix.os }}
  228. # steps:
  229. # - uses: actions/checkout@v4
  230. # - uses: ruby/setup-ruby@v1
  231. # - name: Setup Bundler
  232. # run: scripts/setup_bundler.sh
  233. # - name: Xcode
  234. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  235. # - name: PodLibLint Messaging Cron
  236. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec ${{ matrix.tests }} --platforms=${{ matrix.target }} --use-static-frameworks
  237. # messaging-sample-build-test:
  238. # # Don't run on private repo unless it is a PR.
  239. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  240. # env:
  241. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  242. # runs-on: macos-15
  243. # steps:
  244. # - uses: actions/checkout@v4
  245. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  246. # with:
  247. # cache_key: sample${{ matrix.os }}
  248. # - uses: ruby/setup-ruby@v1
  249. # - name: Setup Bundler
  250. # run: scripts/setup_bundler.sh
  251. # - name: Install Secret GoogleService-Info.plist
  252. # run: |
  253. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  254. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  255. # - name: Prereqs
  256. # run: scripts/install_prereqs.sh MessagingSample iOS
  257. # - name: Xcode
  258. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  259. # - name: Build
  260. # run: ([ -z $plist_secret ] || scripts/build.sh MessagingSample iOS)
  261. # messaging-swiftui-sample-build-test:
  262. # # Don't run on private repo unless it is a PR.
  263. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  264. # env:
  265. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  266. # runs-on: macos-15
  267. # steps:
  268. # - uses: actions/checkout@v4
  269. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  270. # with:
  271. # cache_key: sample${{ matrix.os }}
  272. # - uses: ruby/setup-ruby@v1
  273. # - name: Setup Bundler
  274. # run: scripts/setup_bundler.sh
  275. # - name: Install Secret GoogleService-Info.plist
  276. # run: |
  277. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  278. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  279. # - name: Prereqs
  280. # run: scripts/install_prereqs.sh SwiftUISample iOS
  281. # - name: Xcode
  282. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  283. # - name: Build
  284. # run: ([ -z $plist_secret ] || scripts/build.sh SwiftUISample iOS)
  285. # messaging-watchos-standalone-sample-build-test:
  286. # # Don't run on private repo unless it is a PR.
  287. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  288. # env:
  289. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  290. # runs-on: macos-15
  291. # steps:
  292. # - uses: actions/checkout@v4
  293. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  294. # with:
  295. # cache_key: watch-sample${{ matrix.os }}
  296. # - uses: ruby/setup-ruby@v1
  297. # - name: Setup Bundler
  298. # run: scripts/setup_bundler.sh
  299. # - name: Install Secret GoogleService-Info.plist
  300. # run: |
  301. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  302. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  303. # - name: Prereqs
  304. # run: scripts/install_prereqs.sh MessagingSampleStandaloneWatchApp watchOS
  305. # - name: Xcode
  306. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  307. # - name: Build
  308. # run: ([ -z $plist_secret ] || scripts/build.sh MessagingSampleStandaloneWatchApp watchOS)
  309. =======
  310. # # TODO(#12205) Update the build.sh script for this job from "test" instead of "build"
  311. # messaging-integration-tests:
  312. # # Don't run on private repo unless it is a PR.
  313. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  314. # env:
  315. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  316. # runs-on: macos-15
  317. # steps:
  318. # - uses: actions/checkout@v4
  319. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  320. # with:
  321. # cache_key: integration
  322. # - name: Configure test keychain
  323. # run: scripts/configure_test_keychain.sh
  324. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  325. # - name: Xcode
  326. # run: sudo xcode-select -s /Applications/Xcode_16.3.app/Contents/Developer
  327. # - name: Setup Bundler
  328. # run: scripts/setup_bundler.sh
  329. # - name: Install xcpretty
  330. # run: gem install xcpretty
  331. # - name: Install Secret GoogleService-Info.plist
  332. # run: |
  333. # mkdir FirebaseMessaging/Tests/IntegrationTests/Resources
  334. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  335. # FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist "$plist_secret"
  336. # - name: BuildAndTest
  337. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Messaging all)
  338. # pod-lib-lint:
  339. # # Don't run on private repo unless it is a PR.
  340. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  341. # strategy:
  342. # matrix:
  343. # podspec: [FirebaseMessagingInterop.podspec, FirebaseMessaging.podspec]
  344. # target: [ios, tvos, macos --skip-tests, watchos --skip-tests] # skipping tests on mac because of keychain access
  345. # build-env:
  346. # - os: macos-14
  347. # xcode: Xcode_16.2
  348. # tests: --test-specs=unit
  349. # - os: macos-15
  350. # xcode: Xcode_16.3
  351. # tests: --skip-tests
  352. # runs-on: ${{ matrix.build-env.os }}
  353. # steps:
  354. # - uses: actions/checkout@v4
  355. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  356. # - name: Setup Bundler
  357. # run: scripts/setup_bundler.sh
  358. # - name: Xcode
  359. # run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  360. # - name: Build and test
  361. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} ${{ matrix.build-env.tests }} --platforms=${{ matrix.target }}
  362. # quickstart:
  363. # # Don't run on private repo unless it is a PR.
  364. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  365. # env:
  366. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  367. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  368. # strategy:
  369. # matrix:
  370. # include:
  371. # - os: macos-15
  372. # xcode: Xcode_16.2
  373. # runs-on: ${{ matrix.os }}
  374. # steps:
  375. # - uses: actions/checkout@v4
  376. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  377. # - name: Setup quickstart
  378. # run: scripts/setup_quickstart.sh messaging
  379. # - name: Install Secret GoogleService-Info.plist
  380. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  381. # quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  382. # - name: Xcode
  383. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  384. # - name: Test objc quickstart
  385. # run: ([ -z $plist_secret ] ||
  386. # scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false)
  387. # - name: Test swift quickstart
  388. # run: ([ -z $plist_secret ] ||
  389. # scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false swift)
  390. # quickstart-ftl-cron-only:
  391. # # Don't run on private repo.
  392. # if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
  393. # env:
  394. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  395. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  396. # runs-on: macos-15
  397. # steps:
  398. # - uses: actions/checkout@v4
  399. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  400. # - uses: actions/setup-python@v5
  401. # with:
  402. # python-version: '3.11'
  403. # - name: Xcode
  404. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  405. # - name: Setup quickstart
  406. # run: scripts/setup_quickstart.sh messaging
  407. # - name: Install Secret GoogleService-Info.plist
  408. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  409. # quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  410. # - name: Build objc quickstart
  411. # run: ([ -z $plist_secret ] ||
  412. # scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Messaging)
  413. # - name: Build swift quickstart
  414. # run: ([ -z $plist_secret ] ||
  415. # scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Messaging swift)
  416. # - id: ftl_test
  417. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  418. # with:
  419. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  420. # testapp_dir: quickstart-ios/build-for-testing
  421. # test_type: "xctest"
  422. # messaging-cron-only:
  423. # # Don't run on private repo.
  424. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  425. # strategy:
  426. # matrix:
  427. # target: [ios, tvos, macos --skip-tests, watchos --skip-tests]
  428. # os: [macos-14, macos-15]
  429. # include:
  430. # - os: macos-15
  431. # xcode: Xcode_16.2
  432. # tests: --test-specs=unit
  433. # - os: macos-14
  434. # xcode: Xcode_16.2
  435. # tests: --skip-tests
  436. # runs-on: ${{ matrix.os }}
  437. # steps:
  438. # - uses: actions/checkout@v4
  439. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  440. # - name: Setup Bundler
  441. # run: scripts/setup_bundler.sh
  442. # - name: Xcode
  443. # run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  444. # - name: PodLibLint Messaging Cron
  445. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec ${{ matrix.tests }} --platforms=${{ matrix.target }} --use-static-frameworks
  446. # messaging-sample-build-test:
  447. # # Don't run on private repo unless it is a PR.
  448. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  449. # env:
  450. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  451. # runs-on: macos-15
  452. # steps:
  453. # - uses: actions/checkout@v4
  454. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  455. # with:
  456. # cache_key: sample${{ matrix.os }}
  457. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  458. # - name: Setup Bundler
  459. # run: scripts/setup_bundler.sh
  460. # - name: Install Secret GoogleService-Info.plist
  461. # run: |
  462. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  463. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  464. # - name: Prereqs
  465. # run: scripts/install_prereqs.sh MessagingSample iOS
  466. # - name: Xcode
  467. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  468. # - name: Build
  469. # run: ([ -z $plist_secret ] || scripts/build.sh MessagingSample iOS)
  470. # messaging-swiftui-sample-build-test:
  471. # # Don't run on private repo unless it is a PR.
  472. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  473. # env:
  474. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  475. # runs-on: macos-15
  476. # steps:
  477. # - uses: actions/checkout@v4
  478. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  479. # with:
  480. # cache_key: sample${{ matrix.os }}
  481. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  482. # - name: Setup Bundler
  483. # run: scripts/setup_bundler.sh
  484. # - name: Install Secret GoogleService-Info.plist
  485. # run: |
  486. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  487. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  488. # - name: Prereqs
  489. # run: scripts/install_prereqs.sh SwiftUISample iOS
  490. # - name: Xcode
  491. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  492. # - name: Build
  493. # run: ([ -z $plist_secret ] || scripts/build.sh SwiftUISample iOS)
  494. # messaging-watchos-standalone-sample-build-test:
  495. # # Don't run on private repo unless it is a PR.
  496. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  497. # env:
  498. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  499. # runs-on: macos-15
  500. # steps:
  501. # - uses: actions/checkout@v4
  502. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  503. # with:
  504. # cache_key: watch-sample${{ matrix.os }}
  505. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  506. # - name: Setup Bundler
  507. # run: scripts/setup_bundler.sh
  508. # - name: Install Secret GoogleService-Info.plist
  509. # run: |
  510. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/messaging-sample-plist.gpg \
  511. # FirebaseMessaging/Apps/Shared/GoogleService-Info.plist "$plist_secret"
  512. # - name: Prereqs
  513. # run: scripts/install_prereqs.sh MessagingSampleStandaloneWatchApp watchOS
  514. # - name: Xcode
  515. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  516. # - name: Build
  517. # run: ([ -z $plist_secret ] || scripts/build.sh MessagingSampleStandaloneWatchApp watchOS)
  518. >>>>>>> swift-6