prerelease.yml 30 KB

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