prerelease.yml 22 KB

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