prerelease.yml 27 KB

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