release.yml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. name: release
  2. on:
  3. pull_request:
  4. paths:
  5. - 'scripts/release_testing_setup.sh'
  6. - '.github/workflows/release.yml'
  7. - 'Gemfile*'
  8. workflow_dispatch:
  9. schedule:
  10. # Run every day at 9pm (PST) - cron uses UTC times
  11. - cron: '0 5 * * *'
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  14. cancel-in-progress: true
  15. jobs:
  16. specs_checking:
  17. # Don't run on private repo unless it is a PR.
  18. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  19. runs-on: macos-14
  20. env:
  21. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  22. # The SDK repo will be cloned to this dir and podspecs from
  23. # 'podspec_repo_branch' of this repo will be validated and pushed to the
  24. # testing repo.
  25. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
  26. local_repo: specstesting
  27. podspec_repo_branch: main
  28. outputs:
  29. matrix: ${{ steps.generate_matrix.outputs.matrix }}
  30. steps:
  31. - name: Checkout code
  32. uses: actions/checkout@v4
  33. - name: Generate matrix
  34. id: generate_matrix
  35. run: |
  36. cd "${GITHUB_WORKSPACE}/ReleaseTooling"
  37. swift run manifest --sdk-repo-url "${GITHUB_WORKSPACE}" --output-file-path ./output.json --for-gha-matrix-generation
  38. echo "::set-output name=matrix::{\"include\":$( cat output.json )}"
  39. - name: Get token
  40. run: |
  41. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  42. bot-access.txt "$bot_token_secret"
  43. - name: Update SpecsTesting repo setup
  44. run: |
  45. botaccess=`cat bot-access.txt`
  46. BOT_TOKEN="${botaccess}" test_version="${nightly_version}" \
  47. sdk_version_config="${GITHUB_WORKSPACE}/scripts/create_spec_repo/RC_firebase_sdk.textproto" \
  48. local_sdk_repo_dir="${local_sdk_repo_dir}" \
  49. podspec_repo_branch="${podspec_repo_branch}" \
  50. scripts/release_testing_setup.sh release_testing
  51. - name: Clean spec repo
  52. run: |
  53. botaccess=`cat bot-access.txt`
  54. git clone --quiet https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git "${local_repo}"
  55. cd "${local_repo}"
  56. # Remove all unhidden dirs, i.e. all podspec dir from the spec repo.
  57. rm -Rf -- */
  58. git add .
  59. # commit without diff will throw an error. `git diff --exit-code` can avoid such error.
  60. git diff --staged --exit-code || git commit -m "Empty spec repo."
  61. git push
  62. - name: Clean Artifacts
  63. if: ${{ always() }}
  64. run: |
  65. rm -rf bot-access.txt
  66. - uses: actions/upload-artifact@v4
  67. with:
  68. name: firebase-ios-sdk
  69. path: |
  70. ${{ env.local_sdk_repo_dir }}/*.podspec
  71. ${{ env.local_sdk_repo_dir }}/*.podspec.json
  72. buildup_SpecsTesting_repo_FirebaseCore:
  73. needs: specs_checking
  74. # Don't run on private repo unless it is a PR.
  75. if: github.repository == 'Firebase/firebase-ios-sdk'
  76. runs-on: macos-14
  77. env:
  78. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  79. local_repo: specstesting
  80. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
  81. targeted_pod: FirebaseCore
  82. steps:
  83. - uses: actions/checkout@v4
  84. - uses: actions/download-artifact@v4
  85. with:
  86. name: firebase-ios-sdk
  87. path: ${{ env.local_sdk_repo_dir }}
  88. - name: Get token
  89. run: |
  90. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  91. bot-access.txt "$bot_token_secret"
  92. - name: Update SpecsTesting repo
  93. run: |
  94. botaccess=`cat bot-access.txt`
  95. cd scripts/create_spec_repo/
  96. swift build
  97. pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git
  98. BOT_TOKEN="${botaccess}" ${GITHUB_WORKSPACE}/scripts/third_party/travis/retry.sh .build/debug/spec-repo-builder \
  99. --sdk-repo "${local_sdk_repo_dir}" \
  100. --local-spec-repo-name "${local_repo}" \
  101. --pod-sources 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \
  102. --include-pods "${targeted_pod}" --keep-repo
  103. - name: Clean Artifacts
  104. if: ${{ always() }}
  105. run: |
  106. pod repo remove "${local_repo}"
  107. rm -rf bot-access.txt
  108. buildup_SpecsTesting_repo:
  109. needs: [buildup_SpecsTesting_repo_FirebaseCore, specs_checking]
  110. # Don't run on private repo unless it is a PR.
  111. if: github.repository == 'Firebase/firebase-ios-sdk'
  112. runs-on: macos-14
  113. strategy:
  114. fail-fast: false
  115. matrix: ${{fromJson(needs.specs_checking.outputs.matrix)}}
  116. env:
  117. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  118. local_repo: specstesting
  119. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
  120. targeted_pod: ${{ matrix.podspec }}
  121. steps:
  122. - uses: actions/checkout@v4
  123. - uses: actions/download-artifact@v4
  124. with:
  125. name: firebase-ios-sdk
  126. path: ${{ env.local_sdk_repo_dir }}
  127. - name: Get token
  128. run: |
  129. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  130. bot-access.txt "$bot_token_secret"
  131. - name: Update SpecsTesting repo
  132. run: |
  133. [[ ${{ matrix.allowwarnings }} == true ]] && ALLOWWARNINGS=true
  134. botaccess=`cat bot-access.txt`
  135. cd scripts/create_spec_repo/
  136. swift build
  137. pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git
  138. # ${ALLOWWARNINGS:+--allow-warnings} will add --allow-warnings to the
  139. # command if ${ALLOWWARNINGS} is not null.
  140. BOT_TOKEN="${botaccess}" ${GITHUB_WORKSPACE}/scripts/third_party/travis/retry.sh .build/debug/spec-repo-builder \
  141. --sdk-repo "${local_sdk_repo_dir}" \
  142. --local-spec-repo-name "${local_repo}" \
  143. --pod-sources 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \
  144. --include-pods "${targeted_pod}" \
  145. --keep-repo ${ALLOWWARNINGS:+--allow-warnings}
  146. - name: Clean Artifacts
  147. if: ${{ always() }}
  148. run: |
  149. pod repo remove "${local_repo}"
  150. rm -rf bot-access.txt
  151. abtesting_quickstart:
  152. # Don't run on private repo unless it is a PR.
  153. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  154. needs: buildup_SpecsTesting_repo
  155. env:
  156. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  157. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  158. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  159. runs-on: macos-14
  160. steps:
  161. - uses: actions/checkout@v4
  162. - uses: ruby/setup-ruby@v1
  163. - name: Get token
  164. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  165. bot-access.txt "$bot_token_secret"
  166. - name: Setup testing repo and quickstart
  167. env:
  168. LEGACY: true
  169. run: |
  170. botaccess=`cat bot-access.txt`
  171. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh abtesting nightly_release_testing
  172. - name: Install Secret GoogleService-Info.plist
  173. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  174. quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  175. - name: Test swift quickstart
  176. env:
  177. LEGACY: true
  178. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh ABTesting true)
  179. - name: Remove data before upload
  180. env:
  181. LEGACY: true
  182. run: scripts/remove_data.sh config release_testing
  183. - uses: actions/upload-artifact@v4
  184. if: ${{ failure() }}
  185. with:
  186. name: quickstart_artifacts_abtesting
  187. path: quickstart-ios/
  188. auth_quickstart:
  189. # Don't run on private repo unless it is a PR.
  190. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  191. needs: buildup_SpecsTesting_repo
  192. env:
  193. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  194. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  195. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  196. runs-on: macos-14
  197. steps:
  198. - uses: actions/checkout@v4
  199. - uses: ruby/setup-ruby@v1
  200. - name: Get token
  201. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  202. bot-access.txt "$bot_token_secret"
  203. - name: Setup testing repo and quickstart
  204. run: |
  205. botaccess=`cat bot-access.txt`
  206. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Authentication nightly_release_testing
  207. - name: Install Secret GoogleService-Info.plist
  208. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  209. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  210. - name: Test swift quickstart
  211. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication false)
  212. - name: Remove data before upload
  213. run: scripts/remove_data.sh authentication release_testing
  214. - uses: actions/upload-artifact@v4
  215. if: ${{ failure() }}
  216. with:
  217. name: quickstart_artifacts_auth
  218. path: quickstart-ios/
  219. crashlytics_quickstart:
  220. # Don't run on private repo unless it is a PR.
  221. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  222. needs: buildup_SpecsTesting_repo
  223. env:
  224. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  225. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  226. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  227. testing_repo_dir: "/tmp/test/"
  228. testing_repo: "firebase-ios-sdk"
  229. runs-on: macos-14
  230. steps:
  231. - uses: actions/checkout@v4
  232. - uses: ruby/setup-ruby@v1
  233. - name: Get token
  234. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  235. bot-access.txt "$bot_token_secret"
  236. - name: Setup testing repo and quickstart
  237. env:
  238. LEGACY: true
  239. run: |
  240. botaccess=`cat bot-access.txt`
  241. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Crashlytics nightly_release_testing
  242. - name: Install Secret GoogleService-Info.plist
  243. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  244. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  245. - name: Test objc quickstart
  246. env:
  247. LEGACY: true
  248. run: |
  249. mkdir -p quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
  250. # Set the deployed pod location of run and upload-symbols with the development pod version.
  251. cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  252. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  253. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true)
  254. - name: Test swift quickstart
  255. env:
  256. LEGACY: true
  257. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true swift)
  258. - name: Remove data before upload
  259. env:
  260. LEGACY: true
  261. run: scripts/remove_data.sh crashlytics release_testing
  262. - uses: actions/upload-artifact@v4
  263. if: ${{ failure() }}
  264. with:
  265. name: quickstart_artifacts_crashlytics
  266. path: quickstart-ios/
  267. database_quickstart:
  268. # Don't run on private repo unless it is a PR.
  269. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  270. needs: buildup_SpecsTesting_repo
  271. env:
  272. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  273. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  274. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  275. testing_repo_dir: "/tmp/test/"
  276. testing_repo: "firebase-ios-sdk"
  277. runs-on: macos-14
  278. steps:
  279. - uses: actions/checkout@v4
  280. - uses: ruby/setup-ruby@v1
  281. - name: Get token
  282. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  283. bot-access.txt "$bot_token_secret"
  284. - name: Setup testing repo and quickstart
  285. run: |
  286. botaccess=`cat bot-access.txt`
  287. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh database nightly_release_testing
  288. - name: Install Secret GoogleService-Info.plist
  289. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  290. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  291. - name: Test objc quickstart
  292. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false)
  293. - name: Test swift quickstart
  294. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false swift)
  295. - name: Remove data before upload
  296. run: scripts/remove_data.sh database release_testing
  297. - uses: actions/upload-artifact@v4
  298. if: ${{ failure() }}
  299. with:
  300. name: quickstart_artifacts_database
  301. path: quickstart-ios/
  302. dynamiclinks_quickstart:
  303. # Don't run on private repo unless it is a PR.
  304. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  305. needs: buildup_SpecsTesting_repo
  306. env:
  307. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  308. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  309. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  310. testing_repo_dir: "/tmp/test/"
  311. testing_repo: "firebase-ios-sdk"
  312. runs-on: macos-14
  313. steps:
  314. - uses: actions/checkout@v4
  315. - uses: ruby/setup-ruby@v1
  316. - name: Get token
  317. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  318. bot-access.txt "$bot_token_secret"
  319. - name: Setup testing repo and quickstart
  320. run: |
  321. botaccess=`cat bot-access.txt`
  322. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh dynamiclinks nightly_release_testing
  323. - name: Install Secret GoogleService-Info.plist
  324. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  325. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  326. - name: Update Environment Variable For DynamicLinks
  327. run: |
  328. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  329. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  330. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  331. - name: Test objc quickstart
  332. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true)
  333. - name: Test swift quickstart
  334. if: ${{ always() }}
  335. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true swift)
  336. - name: Remove data before upload
  337. run: scripts/remove_data.sh dynamiclinks release_testing
  338. - uses: actions/upload-artifact@v4
  339. if: ${{ failure() }}
  340. with:
  341. name: quickstart_artifacts_dynamiclinks
  342. path: quickstart-ios/
  343. firestore_quickstart:
  344. # Don't run on private repo unless it is a PR.
  345. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  346. needs: buildup_SpecsTesting_repo
  347. env:
  348. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  349. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  350. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  351. testing_repo_dir: "/tmp/test/"
  352. testing_repo: "firebase-ios-sdk"
  353. runs-on: macos-14
  354. steps:
  355. - uses: actions/checkout@v4
  356. - uses: ruby/setup-ruby@v1
  357. - name: Get token
  358. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  359. bot-access.txt "$bot_token_secret"
  360. - name: Setup testing repo and quickstart
  361. run: |
  362. botaccess=`cat bot-access.txt`
  363. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh firestore nightly_release_testing
  364. - name: Install Secret GoogleService-Info.plist
  365. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  366. quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  367. - name: Test swift quickstart
  368. run: ([ -z $plist_secret ] ||
  369. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore false)
  370. - name: Remove data before upload
  371. run: scripts/remove_data.sh firestore release_testing
  372. - uses: actions/upload-artifact@v4
  373. if: ${{ failure() }}
  374. with:
  375. name: quickstart_artifacts_firestore
  376. path: quickstart-ios/
  377. functions_quickstart:
  378. # Don't run on private repo unless it is a PR.
  379. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  380. needs: buildup_SpecsTesting_repo
  381. env:
  382. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  383. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  384. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  385. testing_repo_dir: "/tmp/test/"
  386. testing_repo: "firebase-ios-sdk"
  387. LEGACY: true
  388. # TODO: The functions quickstart uses Material which isn't supported by Xcode 15
  389. runs-on: macos-12
  390. steps:
  391. - uses: actions/checkout@v4
  392. - uses: ruby/setup-ruby@v1
  393. - name: Get token
  394. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  395. bot-access.txt "$bot_token_secret"
  396. - name: Setup testing repo and quickstart
  397. run: |
  398. botaccess=`cat bot-access.txt`
  399. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions nightly_release_testing
  400. - name: install secret googleservice-info.plist
  401. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
  402. quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
  403. - name: Setup custom URL scheme
  404. run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
  405. - name: Test objc quickstart
  406. run: ([ -z $plist_secret ] ||
  407. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
  408. - name: Test swift quickstart
  409. run: ([ -z $plist_secret ] ||
  410. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
  411. - name: Remove data before upload
  412. run: scripts/remove_data.sh functions release_testing
  413. - uses: actions/upload-artifact@v4
  414. if: ${{ failure() }}
  415. with:
  416. name: quickstart_artifacts_functions
  417. path: quickstart-ios/
  418. inappmessaging_quickstart:
  419. # Don't run on private repo unless it is a PR.
  420. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  421. needs: buildup_SpecsTesting_repo
  422. env:
  423. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  424. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  425. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  426. testing_repo_dir: "/tmp/test/"
  427. testing_repo: "firebase-ios-sdk"
  428. runs-on: macos-14
  429. steps:
  430. - uses: actions/checkout@v4
  431. - uses: ruby/setup-ruby@v1
  432. - name: Get token
  433. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  434. bot-access.txt "$bot_token_secret"
  435. - name: Setup testing repo and quickstart
  436. run: |
  437. botaccess=`cat bot-access.txt`
  438. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh inappmessaging nightly_release_testing
  439. - name: install secret googleservice-info.plist
  440. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  441. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  442. - name: Test objc quickstart
  443. run: ([ -z $plist_secret ] ||
  444. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true)
  445. - name: Test swift quickstart
  446. run: ([ -z $plist_secret ] ||
  447. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true swift)
  448. - name: Remove data before upload
  449. run: scripts/remove_data.sh inappmessaging release_testing
  450. - uses: actions/upload-artifact@v4
  451. if: ${{ failure() }}
  452. with:
  453. name: quickstart_artifacts_inappmessaging
  454. path: quickstart-ios/
  455. messaging_quickstart:
  456. # Don't run on private repo unless it is a PR.
  457. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  458. needs: buildup_SpecsTesting_repo
  459. env:
  460. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  461. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  462. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  463. testing_repo_dir: "/tmp/test/"
  464. testing_repo: "firebase-ios-sdk"
  465. runs-on: macos-14
  466. steps:
  467. - uses: actions/checkout@v4
  468. - uses: ruby/setup-ruby@v1
  469. - name: Get token
  470. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  471. bot-access.txt "$bot_token_secret"
  472. - name: Setup testing repo and quickstart
  473. run: |
  474. botaccess=`cat bot-access.txt`
  475. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh messaging nightly_release_testing
  476. - name: Install Secret GoogleService-Info.plist
  477. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  478. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  479. - name: Test objc quickstart
  480. run: ([ -z $plist_secret ] ||
  481. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false)
  482. - name: Test swift quickstart
  483. run: ([ -z $plist_secret ] ||
  484. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false swift)
  485. - name: Remove data before upload
  486. run: scripts/remove_data.sh messaging release_testing
  487. - uses: actions/upload-artifact@v4
  488. if: ${{ failure() }}
  489. with:
  490. name: quickstart_artifacts_messaging
  491. path: quickstart-ios/
  492. remoteconfig_quickstart:
  493. # Don't run on private repo unless it is a PR.
  494. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  495. needs: buildup_SpecsTesting_repo
  496. env:
  497. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  498. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  499. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  500. runs-on: macos-14
  501. steps:
  502. - uses: actions/checkout@v4
  503. - uses: ruby/setup-ruby@v1
  504. - name: Get token
  505. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  506. bot-access.txt "$bot_token_secret"
  507. - name: Setup testing repo and quickstart
  508. run: |
  509. botaccess=`cat bot-access.txt`
  510. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh config nightly_release_testing
  511. - name: Install Secret GoogleService-Info.plist
  512. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  513. quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
  514. - name: Test Swift Quickstart
  515. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Config true)
  516. - name: Remove data before upload
  517. run: scripts/remove_data.sh config release_testing
  518. - uses: actions/upload-artifact@v4
  519. if: ${{ failure() }}
  520. with:
  521. name: quickstart_artifacts_config
  522. path: quickstart-ios/
  523. storage_quickstart:
  524. # Don't run on private repo unless it is a PR.
  525. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  526. needs: buildup_SpecsTesting_repo
  527. env:
  528. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  529. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  530. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  531. testing_repo_dir: "/tmp/test/"
  532. testing_repo: "firebase-ios-sdk"
  533. LEGACY: true
  534. runs-on: macos-14
  535. steps:
  536. - uses: actions/checkout@v4
  537. - uses: ruby/setup-ruby@v1
  538. - name: Get token
  539. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  540. bot-access.txt "$bot_token_secret"
  541. - name: Setup testing repo and quickstart
  542. run: |
  543. botaccess=`cat bot-access.txt`
  544. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh storage nightly_release_testing
  545. - name: Install Secret GoogleService-Info.plist
  546. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  547. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  548. - name: Test objc quickstart
  549. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true)
  550. - name: Test swift quickstart
  551. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true swift)
  552. - name: Remove data before upload
  553. run: scripts/remove_data.sh storage release_testing
  554. - uses: actions/upload-artifact@v4
  555. if: ${{ failure() }}
  556. with:
  557. name: quickstart_artifacts_storage
  558. path: quickstart-ios/
  559. performance_quickstart:
  560. # Don't run on private repo unless it is a PR.
  561. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  562. needs: buildup_SpecsTesting_repo
  563. env:
  564. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  565. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  566. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  567. testing_repo_dir: "/tmp/test/"
  568. testing_repo: "firebase-ios-sdk"
  569. runs-on: macos-14
  570. steps:
  571. - uses: actions/checkout@v4
  572. - uses: ruby/setup-ruby@v1
  573. - name: Get token
  574. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  575. bot-access.txt "$bot_token_secret"
  576. - name: Setup testing repo and quickstart
  577. run: |
  578. botaccess=`cat bot-access.txt`
  579. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Performance nightly_release_testing
  580. - name: Install Secret GoogleService-Info.plist
  581. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
  582. quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
  583. - name: Test objc quickstart
  584. run: |
  585. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true)
  586. - name: Test swift quickstart
  587. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true swift)
  588. - name: Remove data before upload
  589. run: scripts/remove_data.sh performance release_testing
  590. - uses: actions/upload-artifact@v4
  591. if: ${{ failure() }}
  592. with:
  593. name: quickstart_artifacts_performance
  594. path: quickstart-ios/