prerelease.yml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  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 9pm (PST) - 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. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  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: 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: Update SpecsTesting repo setup
  40. run: |
  41. podspec_repo_branch="${podspec_repo_branch}" \
  42. scripts/release_testing_setup.sh prerelease_testing
  43. env:
  44. BOT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  45. - name: Get token
  46. run: |
  47. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  48. prerelease-testing-token.txt "$bot_token_secret"
  49. - name: Clean spec repo
  50. run: |
  51. ossbotaccess=`cat prerelease-testing-token.txt`
  52. git clone --quiet https://${ossbotaccess}@github.com/Firebase/SpecsTesting.git "${local_repo}"
  53. cd "${local_repo}"
  54. # Remove all unhidden dirs, i.e. all podspec dir from the spec repo.
  55. rm -Rf -- */
  56. git add .
  57. # commit without diff will throw an error. `git diff --exit-code` can avoid such error.
  58. git diff --staged --exit-code || git commit -m "Empty spec repo."
  59. git push
  60. - name: Clean Artifacts
  61. if: ${{ always() }}
  62. run: |
  63. rm -rf prerelease-testing-token.txt
  64. - uses: actions/upload-artifact@v4
  65. with:
  66. name: firebase-ios-sdk
  67. path: |
  68. *.podspec
  69. *.podspec.json
  70. buildup_SpecsTesting_repo_FirebaseCore:
  71. needs: specs_checking
  72. # Don't run on private repo unless it is a PR.
  73. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  74. runs-on: macos-15
  75. env:
  76. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  77. local_repo: specstesting
  78. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
  79. targeted_pod: FirebaseCore
  80. steps:
  81. - uses: actions/checkout@v4
  82. - uses: actions/download-artifact@v4.1.7
  83. with:
  84. name: firebase-ios-sdk
  85. path: ${{ env.local_sdk_repo_dir }}
  86. - name: Get token
  87. run: |
  88. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  89. bot-access.txt "$bot_token_secret"
  90. - name: Update SpecsTesting repo
  91. run: |
  92. botaccess=`cat bot-access.txt`
  93. cd scripts/create_spec_repo/
  94. swift build
  95. pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/Firebase/SpecsTesting.git
  96. BOT_TOKEN="${botaccess}" ${GITHUB_WORKSPACE}/scripts/third_party/travis/retry.sh .build/debug/spec-repo-builder \
  97. --sdk-repo "${local_sdk_repo_dir}" \
  98. --local-spec-repo-name "${local_repo}" \
  99. --sdk-repo-name SpecsTesting \
  100. --github-account Firebase \
  101. --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" \
  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' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  112. runs-on: macos-15
  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.1.7
  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/prerelease-testing-token.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/Firebase/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. --sdk-repo-name SpecsTesting \
  144. --github-account Firebase \
  145. --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" \
  146. --include-pods "${targeted_pod}" \
  147. --keep-repo ${ALLOWWARNINGS:+--allow-warnings}
  148. - name: Clean Artifacts
  149. if: ${{ always() }}
  150. run: |
  151. pod repo remove "${local_repo}"
  152. rm -rf bot-access.txt
  153. update_SpecsTesting_repo:
  154. # Don't run on private repo unless it is a PR.
  155. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged == true
  156. runs-on: macos-15
  157. env:
  158. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  159. local_repo: specstesting
  160. podspec_repo_branch: main
  161. steps:
  162. - uses: actions/checkout@v4
  163. with:
  164. fetch-depth: 0
  165. - name: Get token
  166. run: |
  167. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  168. bot-access.txt "$bot_token_secret"
  169. - name: Update SpecsTesting repo setup
  170. run: |
  171. # Update/create a nightly tag to the head of the main branch.
  172. podspec_repo_branch="${podspec_repo_branch}" \
  173. scripts/release_testing_setup.sh prerelease_testing
  174. env:
  175. BOT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  176. - name: Push updated podspecs
  177. run: |
  178. botaccess=`cat bot-access.txt`
  179. # Changes in post submit tests will be fetched by getting diff between
  180. # the HEAD and HEAD^ of the main branch.
  181. common_commit=$(git rev-parse HEAD^)
  182. git diff --name-only $common_commit remotes/origin/${podspec_repo_branch} > updated_files.txt
  183. updated_podspecs=()
  184. while IFS= read -r line;
  185. do
  186. echo $line
  187. if [ ${line: -8} == ".podspec" ]
  188. then
  189. updated_podspecs+=("$(basename -s .podspec ${line})")
  190. fi
  191. done < updated_files.txt
  192. if [ -z "$updated_podspecs" ]
  193. then
  194. exit
  195. fi
  196. cd scripts/create_spec_repo/
  197. swift build
  198. pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/Firebase/SpecsTesting.git
  199. 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[@]}"
  200. abtesting_quickstart:
  201. # Don't run on private repo unless it is a PR.
  202. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  203. needs: buildup_SpecsTesting_repo
  204. env:
  205. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  206. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  207. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  208. runs-on: macos-15
  209. steps:
  210. - uses: actions/checkout@v4
  211. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  212. - name: Get token
  213. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  214. bot-access.txt "$bot_token_secret"
  215. - name: Setup testing repo and quickstart
  216. env:
  217. LEGACY: true
  218. run: |
  219. botaccess=`cat bot-access.txt`
  220. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh abtesting prerelease_testing
  221. - name: Install Secret GoogleService-Info.plist
  222. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  223. quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  224. - name: Test swift quickstart
  225. env:
  226. LEGACY: true
  227. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh ABTesting true)
  228. - name: Remove data before upload
  229. env:
  230. LEGACY: true
  231. if: ${{ failure() }}
  232. run: scripts/remove_data.sh config
  233. - uses: actions/upload-artifact@v4
  234. if: ${{ failure() }}
  235. with:
  236. name: quickstart_artifacts_abtesting
  237. path: quickstart-ios/
  238. auth_quickstart:
  239. # Don't run on private repo unless it is a PR.
  240. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  241. needs: buildup_SpecsTesting_repo
  242. env:
  243. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  244. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  245. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  246. runs-on: macos-15
  247. steps:
  248. - uses: actions/checkout@v4
  249. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  250. - name: Get token
  251. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  252. bot-access.txt "$bot_token_secret"
  253. - name: Xcode
  254. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  255. - name: Setup testing repo and quickstart
  256. run: |
  257. botaccess=`cat bot-access.txt`
  258. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Authentication prerelease_testing
  259. - name: Install Secret GoogleService-Info.plist
  260. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  261. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  262. - name: Test swift quickstart
  263. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication false)
  264. - name: Remove data before upload
  265. if: ${{ failure() }}
  266. run: scripts/remove_data.sh authentication
  267. - uses: actions/upload-artifact@v4
  268. if: ${{ failure() }}
  269. with:
  270. name: quickstart_artifacts_auth
  271. path: quickstart-ios/
  272. crashlytics_quickstart:
  273. # Don't run on private repo unless it is a PR.
  274. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  275. needs: buildup_SpecsTesting_repo
  276. env:
  277. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  278. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  279. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  280. testing_repo_dir: "/tmp/test/"
  281. testing_repo: "firebase-ios-sdk"
  282. runs-on: macos-15
  283. steps:
  284. - uses: actions/checkout@v4
  285. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  286. - name: Get token
  287. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  288. bot-access.txt "$bot_token_secret"
  289. - name: Setup testing repo and quickstart
  290. env:
  291. LEGACY: true
  292. run: |
  293. botaccess=`cat bot-access.txt`
  294. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Crashlytics prerelease_testing
  295. - name: Install Secret GoogleService-Info.plist
  296. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  297. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  298. - name: Test swift quickstart
  299. env:
  300. LEGACY: true
  301. run: |
  302. mkdir -p quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
  303. # Set the deployed pod location of run and upload-symbols with the development pod version.
  304. cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  305. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  306. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true swift)
  307. - name: Remove data before upload
  308. env:
  309. LEGACY: true
  310. if: ${{ failure() }}
  311. run: scripts/remove_data.sh crashlytics
  312. - uses: actions/upload-artifact@v4
  313. if: ${{ failure() }}
  314. with:
  315. name: quickstart_artifacts_crashlytics
  316. path: quickstart-ios/
  317. database_quickstart:
  318. # Don't run on private repo unless it is a PR.
  319. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  320. needs: buildup_SpecsTesting_repo
  321. env:
  322. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  323. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  324. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  325. testing_repo_dir: "/tmp/test/"
  326. testing_repo: "firebase-ios-sdk"
  327. runs-on: macos-15
  328. steps:
  329. - uses: actions/checkout@v4
  330. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  331. - name: Get token
  332. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  333. bot-access.txt "$bot_token_secret"
  334. - name: Setup testing repo and quickstart
  335. run: |
  336. botaccess=`cat bot-access.txt`
  337. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh database prerelease_testing
  338. - name: Install Secret GoogleService-Info.plist
  339. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  340. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  341. - name: Test objc quickstart
  342. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false)
  343. - name: Test swift quickstart
  344. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false swift)
  345. - name: Remove data before upload
  346. if: ${{ failure() }}
  347. run: scripts/remove_data.sh database
  348. - uses: actions/upload-artifact@v4
  349. if: ${{ failure() }}
  350. with:
  351. name: quickstart_artifacts_database
  352. path: quickstart-ios/
  353. firestore_quickstart:
  354. # Don't run on private repo unless it is a PR.
  355. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  356. needs: buildup_SpecsTesting_repo
  357. env:
  358. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  359. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  360. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  361. testing_repo_dir: "/tmp/test/"
  362. testing_repo: "firebase-ios-sdk"
  363. runs-on: macos-15
  364. steps:
  365. - uses: actions/checkout@v4
  366. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  367. - name: Get token
  368. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  369. bot-access.txt "$bot_token_secret"
  370. - name: Setup testing repo and quickstart
  371. run: |
  372. botaccess=`cat bot-access.txt`
  373. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh firestore prerelease_testing
  374. - name: Install Secret GoogleService-Info.plist
  375. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  376. quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  377. - name: Test swift quickstart
  378. run: ([ -z $plist_secret ] ||
  379. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore false)
  380. - name: Remove data before upload
  381. if: ${{ failure() }}
  382. run: scripts/remove_data.sh firestore
  383. - uses: actions/upload-artifact@v4
  384. if: ${{ failure() }}
  385. with:
  386. name: quickstart_artifacts_firestore
  387. path: quickstart-ios/
  388. # TODO: The functions quickstart uses Material which isn't supported by Xcode 15
  389. #functions_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. # LEGACY: true
  400. # # TODO: The functions quickstart uses Material which isn't supported by Xcode 15
  401. # runs-on: macos-12
  402. # steps:
  403. # - uses: actions/checkout@v4
  404. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  405. # - name: Get token
  406. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  407. # bot-access.txt "$bot_token_secret"
  408. # - name: Setup testing repo and quickstart
  409. # run: |
  410. # botaccess=`cat bot-access.txt`
  411. # BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions prerelease_testing
  412. # - name: install secret googleservice-info.plist
  413. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
  414. # quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
  415. # - name: Setup custom URL scheme
  416. # run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
  417. # - name: Test objc quickstart
  418. # run: ([ -z $plist_secret ] ||
  419. # scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
  420. # - name: Test swift quickstart
  421. # run: ([ -z $plist_secret ] ||
  422. # scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
  423. # - name: Remove data before upload
  424. # if: ${{ failure() }}
  425. # run: scripts/remove_data.sh functions
  426. # - uses: actions/upload-artifact@v4
  427. # if: ${{ failure() }}
  428. # with:
  429. # name: quickstart_artifacts_functions
  430. # path: quickstart-ios/
  431. inappmessaging_quickstart:
  432. # Don't run on private repo unless it is a PR.
  433. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  434. needs: buildup_SpecsTesting_repo
  435. env:
  436. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  437. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  438. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  439. testing_repo_dir: "/tmp/test/"
  440. testing_repo: "firebase-ios-sdk"
  441. runs-on: macos-15
  442. steps:
  443. - uses: actions/checkout@v4
  444. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  445. - name: Get token
  446. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  447. bot-access.txt "$bot_token_secret"
  448. - name: Setup testing repo and quickstart
  449. run: |
  450. botaccess=`cat bot-access.txt`
  451. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh inappmessaging prerelease_testing
  452. - name: install secret googleservice-info.plist
  453. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  454. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  455. - name: Test objc quickstart
  456. run: ([ -z $plist_secret ] ||
  457. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true)
  458. - name: Test swift quickstart
  459. run: ([ -z $plist_secret ] ||
  460. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true swift)
  461. - name: Remove data before upload
  462. if: ${{ failure() }}
  463. run: scripts/remove_data.sh inappmessaging
  464. - uses: actions/upload-artifact@v4
  465. if: ${{ failure() }}
  466. with:
  467. name: quickstart_artifacts_inappmessaging
  468. path: quickstart-ios/
  469. messaging_quickstart:
  470. # Don't run on private repo unless it is a PR.
  471. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  472. needs: buildup_SpecsTesting_repo
  473. env:
  474. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  475. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  476. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  477. testing_repo_dir: "/tmp/test/"
  478. testing_repo: "firebase-ios-sdk"
  479. runs-on: macos-15
  480. steps:
  481. - uses: actions/checkout@v4
  482. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  483. - name: Get token
  484. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  485. bot-access.txt "$bot_token_secret"
  486. - name: Setup testing repo and quickstart
  487. run: |
  488. botaccess=`cat bot-access.txt`
  489. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh messaging prerelease_testing
  490. - name: Install Secret GoogleService-Info.plist
  491. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  492. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  493. - name: Test objc quickstart
  494. run: ([ -z $plist_secret ] ||
  495. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false)
  496. - name: Test swift quickstart
  497. run: ([ -z $plist_secret ] ||
  498. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false swift)
  499. - name: Remove data before upload
  500. if: ${{ failure() }}
  501. run: scripts/remove_data.sh messaging
  502. - uses: actions/upload-artifact@v4
  503. if: ${{ failure() }}
  504. with:
  505. name: quickstart_artifacts_messaging
  506. path: quickstart-ios/
  507. remoteconfig_quickstart:
  508. # Don't run on private repo unless it is a PR.
  509. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  510. needs: buildup_SpecsTesting_repo
  511. env:
  512. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  513. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  514. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  515. runs-on: macos-15
  516. steps:
  517. - uses: actions/checkout@v4
  518. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # 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 config prerelease_testing
  526. - name: Install Secret GoogleService-Info.plist
  527. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  528. quickstart-ios/config/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 Config true)
  531. - name: Remove data before upload
  532. if: ${{ failure() }}
  533. run: scripts/remove_data.sh config
  534. - uses: actions/upload-artifact@v4
  535. if: ${{ failure() }}
  536. with:
  537. name: quickstart_artifacts_config
  538. path: quickstart-ios/
  539. storage_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. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  546. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  547. testing_repo_dir: "/tmp/test/"
  548. testing_repo: "firebase-ios-sdk"
  549. LEGACY: true
  550. runs-on: macos-15
  551. steps:
  552. - uses: actions/checkout@v4
  553. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  554. - name: Get token
  555. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  556. bot-access.txt "$bot_token_secret"
  557. - name: Setup testing repo and quickstart
  558. run: |
  559. botaccess=`cat bot-access.txt`
  560. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh storage prerelease_testing
  561. - name: Install Secret GoogleService-Info.plist
  562. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  563. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  564. - name: Test swift quickstart
  565. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true swift)
  566. - name: Remove data before upload
  567. if: ${{ failure() }}
  568. run: scripts/remove_data.sh storage
  569. - uses: actions/upload-artifact@v4
  570. if: ${{ failure() }}
  571. with:
  572. name: quickstart_artifacts_storage
  573. path: quickstart-ios/
  574. performance_quickstart:
  575. # Don't run on private repo unless it is a PR.
  576. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  577. needs: buildup_SpecsTesting_repo
  578. env:
  579. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  580. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  581. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  582. testing_repo_dir: "/tmp/test/"
  583. testing_repo: "firebase-ios-sdk"
  584. runs-on: macos-15
  585. steps:
  586. - uses: actions/checkout@v4
  587. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  588. - name: Get token
  589. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
  590. bot-access.txt "$bot_token_secret"
  591. - name: Setup testing repo and quickstart
  592. run: |
  593. botaccess=`cat bot-access.txt`
  594. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Performance prerelease_testing
  595. - name: Install Secret GoogleService-Info.plist
  596. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
  597. quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
  598. - name: Test swift quickstart
  599. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true swift)
  600. - name: Remove data before upload
  601. if: ${{ failure() }}
  602. run: scripts/remove_data.sh performance
  603. - uses: actions/upload-artifact@v4
  604. if: ${{ failure() }}
  605. with:
  606. name: quickstart_artifacts_performance
  607. path: quickstart-ios/