release.yml 22 KB

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