prerelease.yml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. name: prerelease
  2. on:
  3. pull_request:
  4. paths:
  5. - '.github/workflows/prerelease.yml'
  6. workflow_dispatch:
  7. schedule:
  8. # Run every day at 11pm (PST) - cron uses UTC times
  9. - cron: '0 7 * * *'
  10. jobs:
  11. buildup_SpecsReleasing_repo:
  12. # Don't run on private repo unless it is a PR.
  13. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  14. env:
  15. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  16. local_repo: specstesting
  17. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
  18. runs-on: macOS-latest
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Get token
  22. run: |
  23. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/oss-bot-access.txt.gpg \
  24. oss-bot-access.txt "$bot_token_secret"
  25. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  26. bot-access.txt "$bot_token_secret"
  27. - name: Update SpecsReleasing repo setup
  28. run: |
  29. ossbotaccess=`cat oss-bot-access.txt`
  30. BOT_TOKEN="${ossbotaccess}" test_version="${nightly_version}" sdk_version_config="${GITHUB_WORKSPACE}/scripts/create_spec_repo/RC_firebase_sdk.textproto" scripts/release_testing_setup.sh RC_testing
  31. - name: Update SpecsReleasing repo
  32. run: |
  33. botaccess=`cat bot-access.txt`
  34. cd scripts/create_spec_repo/
  35. swift build
  36. pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/FirebasePrivate/SpecsReleasing.git
  37. BOT_TOKEN="${botaccess}" .build/debug/spec-repo-builder --sdk-repo "${local_sdk_repo_dir}" --local-spec-repo-name "${local_repo}" --sdk-repo-name SpecsReleasing --pod-sources 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsReleasing' --pod-sources "https://github.com/firebase/SpecsStaging.git" --pod-sources "https://cdn.cocoapods.org/"
  38. - name: Clean Artifacts
  39. if: ${{ always() }}
  40. run: |
  41. pod repo remove "${local_repo}"
  42. rm -rf bot-access.txt
  43. abtesting_quickstart:
  44. # Don't run on private repo unless it is a PR.
  45. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  46. needs: buildup_SpecsReleasing_repo
  47. env:
  48. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  49. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  50. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  51. runs-on: macOS-latest
  52. steps:
  53. - uses: actions/checkout@v2
  54. - name: Get token
  55. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  56. bot-access.txt "$bot_token_secret"
  57. - name: Setup testing repo and quickstart
  58. run: |
  59. botaccess=`cat bot-access.txt`
  60. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh abtesting prerelease_testing
  61. - name: Install Secret GoogleService-Info.plist
  62. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  63. quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  64. - name: Install Secret FIREGSignInInfo.h
  65. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  66. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  67. - name: Test swift quickstart
  68. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh ABTesting)
  69. - name: Remove data before upload
  70. run: scripts/remove_data.sh config release_testing
  71. - uses: actions/upload-artifact@v2
  72. if: ${{ failure() }}
  73. with:
  74. name: quickstart_artifacts_abtesting
  75. path: quickstart-ios/
  76. auth_quickstart:
  77. # Don't run on private repo unless it is a PR.
  78. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  79. needs: buildup_SpecsReleasing_repo
  80. env:
  81. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  82. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  83. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  84. runs-on: macOS-latest
  85. steps:
  86. - uses: actions/checkout@v2
  87. - name: Get token
  88. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  89. bot-access.txt "$bot_token_secret"
  90. - name: Setup testing repo and quickstart
  91. run: |
  92. botaccess=`cat bot-access.txt`
  93. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Authentication prerelease_testing
  94. - name: Install Secret GoogleService-Info.plist
  95. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  96. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  97. - name: Install Secret FIREGSignInInfo.h
  98. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  99. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  100. - name: Test swift quickstart
  101. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication)
  102. - name: Remove data before upload
  103. run: scripts/remove_data.sh authentication release_testing
  104. - uses: actions/upload-artifact@v2
  105. if: ${{ failure() }}
  106. with:
  107. name: quickstart_artifacts_auth
  108. path: quickstart-ios/
  109. crashlytics_quickstart:
  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 == 'pull_request' || github.event_name == 'workflow_dispatch'
  112. needs: buildup_SpecsReleasing_repo
  113. env:
  114. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  115. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  116. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  117. testing_repo_dir: "/tmp/test/"
  118. testing_repo: "firebase-ios-sdk"
  119. runs-on: macOS-latest
  120. steps:
  121. - uses: actions/checkout@v2
  122. - name: Get token
  123. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  124. bot-access.txt "$bot_token_secret"
  125. - name: Setup testing repo and quickstart
  126. run: |
  127. botaccess=`cat bot-access.txt`
  128. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Crashlytics prerelease_testing
  129. - name: Install Secret GoogleService-Info.plist
  130. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  131. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  132. - name: Install Secret FIREGSignInInfo.h
  133. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  134. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  135. - name: Test objc quickstart
  136. run: |
  137. mkdir -p quickstart-ios/crashlytics/Pods/FirebaseCrashlytics
  138. # Set the deployed pod location of run and upload-symbols with the development pod version.
  139. cp Crashlytics/run quickstart-ios/crashlytics/Pods/FirebaseCrashlytics/
  140. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/Pods/FirebaseCrashlytics/
  141. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics)
  142. - name: Test swift quickstart
  143. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics swift)
  144. - name: Remove data before upload
  145. run: scripts/remove_data.sh crashlytics release_testing
  146. - uses: actions/upload-artifact@v2
  147. if: ${{ failure() }}
  148. with:
  149. name: quickstart_artifacts_crashlytics
  150. path: quickstart-ios/
  151. database_quickstart:
  152. # Don't run on private repo unless it is a PR.
  153. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  154. needs: buildup_SpecsReleasing_repo
  155. env:
  156. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  157. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  158. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  159. testing_repo_dir: "/tmp/test/"
  160. testing_repo: "firebase-ios-sdk"
  161. runs-on: macOS-latest
  162. steps:
  163. - uses: actions/checkout@v2
  164. - name: Get token
  165. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  166. bot-access.txt "$bot_token_secret"
  167. - name: Setup testing repo and quickstart
  168. run: |
  169. botaccess=`cat bot-access.txt`
  170. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh database prerelease_testing
  171. - name: Install Secret GoogleService-Info.plist
  172. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  173. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  174. - name: Install Secret FIREGSignInInfo.h
  175. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  176. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  177. - name: Test objc quickstart
  178. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database)
  179. - name: Test swift quickstart
  180. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database swift)
  181. - name: Remove data before upload
  182. run: scripts/remove_data.sh database release_testing
  183. - uses: actions/upload-artifact@v2
  184. if: ${{ failure() }}
  185. with:
  186. name: quickstart_artifacts_database
  187. path: quickstart-ios/
  188. dynamiclinks_quickstart:
  189. # Don't run on private repo unless it is a PR.
  190. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  191. needs: buildup_SpecsReleasing_repo
  192. env:
  193. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  194. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  195. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  196. testing_repo_dir: "/tmp/test/"
  197. testing_repo: "firebase-ios-sdk"
  198. runs-on: macOS-latest
  199. steps:
  200. - uses: actions/checkout@v2
  201. - name: Get token
  202. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  203. bot-access.txt "$bot_token_secret"
  204. - name: Setup testing repo and quickstart
  205. run: |
  206. botaccess=`cat bot-access.txt`
  207. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh dynamiclinks prerelease_testing
  208. - name: Install Secret GoogleService-Info.plist
  209. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  210. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  211. - name: Update Environment Variable For DynamicLinks
  212. run: |
  213. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  214. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  215. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  216. - name: Install Secret FIREGSignInInfo.h
  217. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  218. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  219. - name: Test objc quickstart
  220. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks)
  221. - name: Test swift quickstart
  222. if: ${{ always() }}
  223. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks swift)
  224. - name: Remove data before upload
  225. run: scripts/remove_data.sh dynamiclinks release_testing
  226. - uses: actions/upload-artifact@v2
  227. if: ${{ failure() }}
  228. with:
  229. name: quickstart_artifacts_dynamiclinks
  230. path: quickstart-ios/
  231. firestore_quickstart:
  232. # Don't run on private repo unless it is a PR.
  233. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  234. needs: buildup_SpecsReleasing_repo
  235. env:
  236. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  237. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  238. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  239. testing_repo_dir: "/tmp/test/"
  240. testing_repo: "firebase-ios-sdk"
  241. runs-on: macOS-latest
  242. steps:
  243. - uses: actions/checkout@v2
  244. - name: Get token
  245. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  246. bot-access.txt "$bot_token_secret"
  247. - name: Setup testing repo and quickstart
  248. run: |
  249. botaccess=`cat bot-access.txt`
  250. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh firestore prerelease_testing
  251. - name: Install Secret GoogleService-Info.plist
  252. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  253. quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  254. - name: Install Secret FIREGSignInInfo.h
  255. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  256. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  257. - name: Test swift quickstart
  258. run: ([ -z $plist_secret ] ||
  259. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore)
  260. - name: Remove data before upload
  261. run: scripts/remove_data.sh firestore release_testing
  262. - uses: actions/upload-artifact@v2
  263. if: ${{ failure() }}
  264. with:
  265. name: quickstart_artifacts_firestore
  266. path: quickstart-ios/
  267. functions_quickstart:
  268. # Don't run on private repo unless it is a PR.
  269. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  270. needs: buildup_SpecsReleasing_repo
  271. env:
  272. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  273. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  274. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  275. testing_repo_dir: "/tmp/test/"
  276. testing_repo: "firebase-ios-sdk"
  277. runs-on: macOS-latest
  278. steps:
  279. - uses: actions/checkout@v2
  280. - name: Get token
  281. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  282. bot-access.txt "$bot_token_secret"
  283. - name: Setup testing repo and quickstart
  284. run: |
  285. botaccess=`cat bot-access.txt`
  286. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions prerelease_testing
  287. - name: install secret googleservice-info.plist
  288. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
  289. quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
  290. - name: Install Secret FIREGSignInInfo.h
  291. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  292. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  293. - name: Setup custom URL scheme
  294. run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/FunctionsExample/Info.plist
  295. - name: Test objc quickstart
  296. run: ([ -z $plist_secret ] ||
  297. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions)
  298. - name: Test swift quickstart
  299. run: ([ -z $plist_secret ] ||
  300. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions swift)
  301. - name: Remove data before upload
  302. run: scripts/remove_data.sh functions release_testing
  303. - uses: actions/upload-artifact@v2
  304. if: ${{ failure() }}
  305. with:
  306. name: quickstart_artifacts_functions
  307. path: quickstart-ios/
  308. inappmessaging_quickstart:
  309. # Don't run on private repo unless it is a PR.
  310. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  311. needs: buildup_SpecsReleasing_repo
  312. env:
  313. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  314. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  315. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  316. testing_repo_dir: "/tmp/test/"
  317. testing_repo: "firebase-ios-sdk"
  318. runs-on: macOS-latest
  319. steps:
  320. - uses: actions/checkout@v2
  321. - name: Get token
  322. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  323. bot-access.txt "$bot_token_secret"
  324. - name: Setup testing repo and quickstart
  325. run: |
  326. botaccess=`cat bot-access.txt`
  327. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh inappmessaging prerelease_testing
  328. - name: install secret googleservice-info.plist
  329. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  330. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  331. - name: Install Secret FIREGSignInInfo.h
  332. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  333. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  334. - name: Test objc quickstart
  335. run: ([ -z $plist_secret ] ||
  336. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging)
  337. - name: Test swift quickstart
  338. run: ([ -z $plist_secret ] ||
  339. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging swift)
  340. - name: Remove data before upload
  341. run: scripts/remove_data.sh inappmessaging release_testing
  342. - uses: actions/upload-artifact@v2
  343. if: ${{ failure() }}
  344. with:
  345. name: quickstart_artifacts_inappmessaging
  346. path: quickstart-ios/
  347. messaging_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 == 'pull_request' || github.event_name == 'workflow_dispatch'
  350. needs: buildup_SpecsReleasing_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-latest
  358. steps:
  359. - uses: actions/checkout@v2
  360. - name: Get token
  361. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  362. bot-access.txt "$bot_token_secret"
  363. - name: Setup testing repo and quickstart
  364. run: |
  365. botaccess=`cat bot-access.txt`
  366. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh messaging prerelease_testing
  367. - name: Install Secret GoogleService-Info.plist
  368. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  369. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  370. - name: Install Secret FIREGSignInInfo.h
  371. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  372. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  373. - name: Test objc quickstart
  374. run: ([ -z $plist_secret ] ||
  375. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging)
  376. - name: Test swift quickstart
  377. run: ([ -z $plist_secret ] ||
  378. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging swift)
  379. - name: Remove data before upload
  380. run: scripts/remove_data.sh messaging release_testing
  381. - uses: actions/upload-artifact@v2
  382. if: ${{ failure() }}
  383. with:
  384. name: quickstart_artifacts_messaging
  385. path: quickstart-ios/
  386. remoteconfig_quickstart:
  387. # Don't run on private repo unless it is a PR.
  388. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  389. needs: buildup_SpecsReleasing_repo
  390. env:
  391. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  392. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  393. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  394. runs-on: macOS-latest
  395. steps:
  396. - uses: actions/checkout@v2
  397. - name: Get token
  398. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  399. bot-access.txt "$bot_token_secret"
  400. - name: Setup testing repo and quickstart
  401. run: |
  402. botaccess=`cat bot-access.txt`
  403. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh config prerelease_testing
  404. - name: Install Secret GoogleService-Info.plist
  405. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  406. quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
  407. - name: Install Secret FIREGSignInInfo.h
  408. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  409. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  410. - name: Test Swift Quickstart
  411. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Config)
  412. - name: Remove data before upload
  413. run: scripts/remove_data.sh config release_testing
  414. - uses: actions/upload-artifact@v2
  415. if: ${{ failure() }}
  416. with:
  417. name: quickstart_artifacts_config
  418. path: quickstart-ios/
  419. storage_quickstart:
  420. # Don't run on private repo unless it is a PR.
  421. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  422. needs: buildup_SpecsReleasing_repo
  423. env:
  424. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  425. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  426. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  427. testing_repo_dir: "/tmp/test/"
  428. testing_repo: "firebase-ios-sdk"
  429. runs-on: macOS-latest
  430. steps:
  431. - uses: actions/checkout@v2
  432. - name: Get token
  433. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  434. bot-access.txt "$bot_token_secret"
  435. - name: Setup testing repo and quickstart
  436. run: |
  437. botaccess=`cat bot-access.txt`
  438. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh storage prerelease_testing
  439. - name: Install Secret GoogleService-Info.plist
  440. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  441. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  442. - name: Install Secret FIREGSignInInfo.h
  443. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  444. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  445. - name: Test objc quickstart
  446. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage)
  447. - name: Test swift quickstart
  448. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage swift)
  449. - name: Remove data before upload
  450. run: scripts/remove_data.sh storage release_testing
  451. - uses: actions/upload-artifact@v2
  452. if: ${{ failure() }}
  453. with:
  454. name: quickstart_artifacts_storage
  455. path: quickstart-ios/