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