release.yml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. name: release
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. # Run every day at 11pm (PST) - cron uses UTC times
  6. - cron: '0 7 * * *'
  7. jobs:
  8. buildup_SpecsTesting_repo:
  9. # Don't run on private repo unless it is a PR.
  10. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  11. env:
  12. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  13. local_repo: specstesting
  14. # The SDK repo will be cloned to this dir and podspecs from
  15. # the latest release branch of this repo will be validated and pushed to
  16. # the testing repo.
  17. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
  18. runs-on: macos-11
  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 SpecsTesting repo setup
  28. run: |
  29. ossbotaccess=`cat oss-bot-access.txt`
  30. BOT_TOKEN="${ossbotaccess}" scripts/release_testing_setup.sh release_testing
  31. - name: Update SpecsTesting 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/SpecsTesting.git
  37. BOT_TOKEN="${botaccess}" .build/debug/spec-repo-builder --sdk-repo "${local_sdk_repo_dir}" --local-spec-repo-name "${local_repo}" --pod-sources 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting' "https://github.com/firebase/SpecsStaging.git" "https://cdn.cocoapods.org/" --exclude-pods "FirebaseFirestoreTestingSupport" "FirebaseAuthTestingSupport" "FirebaseCombineSwift" "FirebaseFunctionsTestingSupport"
  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_SpecsTesting_repo
  47. env:
  48. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  49. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  50. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  51. runs-on: macos-11
  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. env:
  59. LEGACY: true
  60. run: |
  61. botaccess=`cat bot-access.txt`
  62. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh abtesting nightly_release_testing
  63. - name: Install Secret GoogleService-Info.plist
  64. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  65. quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  66. - name: Test swift quickstart
  67. env:
  68. LEGACY: true
  69. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh ABTesting true)
  70. - name: Remove data before upload
  71. env:
  72. LEGACY: true
  73. run: scripts/remove_data.sh config release_testing
  74. - uses: actions/upload-artifact@v2
  75. if: ${{ failure() }}
  76. with:
  77. name: quickstart_artifacts_abtesting
  78. path: quickstart-ios/
  79. auth_quickstart:
  80. # Don't run on private repo unless it is a PR.
  81. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  82. needs: buildup_SpecsTesting_repo
  83. env:
  84. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  85. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  86. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  87. runs-on: macos-11
  88. steps:
  89. - uses: actions/checkout@v2
  90. - name: Get token
  91. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  92. bot-access.txt "$bot_token_secret"
  93. - name: Setup testing repo and quickstart
  94. run: |
  95. botaccess=`cat bot-access.txt`
  96. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Authentication nightly_release_testing
  97. - name: Install Secret GoogleService-Info.plist
  98. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  99. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  100. - name: Test swift quickstart
  101. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication false)
  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_SpecsTesting_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-11
  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. env:
  127. LEGACY: true
  128. run: |
  129. botaccess=`cat bot-access.txt`
  130. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Crashlytics nightly_release_testing
  131. - name: Install Secret GoogleService-Info.plist
  132. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  133. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  134. - name: Test objc quickstart
  135. env:
  136. LEGACY: true
  137. run: |
  138. mkdir -p quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
  139. # Set the deployed pod location of run and upload-symbols with the development pod version.
  140. cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  141. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  142. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true)
  143. - name: Test swift quickstart
  144. env:
  145. LEGACY: true
  146. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true swift)
  147. - name: Remove data before upload
  148. env:
  149. LEGACY: true
  150. run: scripts/remove_data.sh crashlytics release_testing
  151. - uses: actions/upload-artifact@v2
  152. if: ${{ failure() }}
  153. with:
  154. name: quickstart_artifacts_crashlytics
  155. path: quickstart-ios/
  156. database_quickstart:
  157. # Don't run on private repo unless it is a PR.
  158. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  159. needs: buildup_SpecsTesting_repo
  160. env:
  161. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  162. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  163. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  164. testing_repo_dir: "/tmp/test/"
  165. testing_repo: "firebase-ios-sdk"
  166. runs-on: macos-11
  167. steps:
  168. - uses: actions/checkout@v2
  169. - name: Get token
  170. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  171. bot-access.txt "$bot_token_secret"
  172. - name: Setup testing repo and quickstart
  173. run: |
  174. botaccess=`cat bot-access.txt`
  175. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh database nightly_release_testing
  176. - name: Install Secret GoogleService-Info.plist
  177. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  178. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  179. - name: Test objc quickstart
  180. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false)
  181. - name: Test swift quickstart
  182. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false swift)
  183. - name: Remove data before upload
  184. run: scripts/remove_data.sh database release_testing
  185. - uses: actions/upload-artifact@v2
  186. if: ${{ failure() }}
  187. with:
  188. name: quickstart_artifacts_database
  189. path: quickstart-ios/
  190. dynamiclinks_quickstart:
  191. # Don't run on private repo unless it is a PR.
  192. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  193. needs: buildup_SpecsTesting_repo
  194. env:
  195. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  196. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  197. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  198. testing_repo_dir: "/tmp/test/"
  199. testing_repo: "firebase-ios-sdk"
  200. runs-on: macos-11
  201. steps:
  202. - uses: actions/checkout@v2
  203. - name: Get token
  204. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  205. bot-access.txt "$bot_token_secret"
  206. - name: Setup testing repo and quickstart
  207. run: |
  208. botaccess=`cat bot-access.txt`
  209. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh dynamiclinks nightly_release_testing
  210. - name: Install Secret GoogleService-Info.plist
  211. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  212. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  213. - name: Update Environment Variable For DynamicLinks
  214. run: |
  215. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  216. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  217. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  218. - name: Test objc quickstart
  219. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true)
  220. - name: Test swift quickstart
  221. if: ${{ always() }}
  222. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true 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 == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  233. needs: buildup_SpecsTesting_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-11
  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 nightly_release_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: Test swift quickstart
  254. run: ([ -z $plist_secret ] ||
  255. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore false)
  256. - name: Remove data before upload
  257. run: scripts/remove_data.sh firestore release_testing
  258. - uses: actions/upload-artifact@v2
  259. if: ${{ failure() }}
  260. with:
  261. name: quickstart_artifacts_firestore
  262. path: quickstart-ios/
  263. functions_quickstart:
  264. # Don't run on private repo unless it is a PR.
  265. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  266. needs: buildup_SpecsTesting_repo
  267. env:
  268. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  269. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  270. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  271. testing_repo_dir: "/tmp/test/"
  272. testing_repo: "firebase-ios-sdk"
  273. runs-on: macos-11
  274. steps:
  275. - uses: actions/checkout@v2
  276. - name: Get token
  277. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  278. bot-access.txt "$bot_token_secret"
  279. - name: Setup testing repo and quickstart
  280. run: |
  281. botaccess=`cat bot-access.txt`
  282. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions nightly_release_testing
  283. - name: install secret googleservice-info.plist
  284. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
  285. quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
  286. - name: Setup custom URL scheme
  287. run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/FunctionsExample/Info.plist
  288. - name: Test objc quickstart
  289. run: ([ -z $plist_secret ] ||
  290. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
  291. - name: Test swift quickstart
  292. run: ([ -z $plist_secret ] ||
  293. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
  294. - name: Remove data before upload
  295. run: scripts/remove_data.sh functions release_testing
  296. - uses: actions/upload-artifact@v2
  297. if: ${{ failure() }}
  298. with:
  299. name: quickstart_artifacts_functions
  300. path: quickstart-ios/
  301. inappmessaging_quickstart:
  302. # Don't run on private repo unless it is a PR.
  303. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  304. needs: buildup_SpecsTesting_repo
  305. env:
  306. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  307. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  308. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  309. testing_repo_dir: "/tmp/test/"
  310. testing_repo: "firebase-ios-sdk"
  311. runs-on: macos-11
  312. steps:
  313. - uses: actions/checkout@v2
  314. - name: Get token
  315. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  316. bot-access.txt "$bot_token_secret"
  317. - name: Setup testing repo and quickstart
  318. run: |
  319. botaccess=`cat bot-access.txt`
  320. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh inappmessaging nightly_release_testing
  321. - name: install secret googleservice-info.plist
  322. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  323. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  324. - name: Test objc quickstart
  325. run: ([ -z $plist_secret ] ||
  326. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true)
  327. - name: Test swift quickstart
  328. run: ([ -z $plist_secret ] ||
  329. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true swift)
  330. - name: Remove data before upload
  331. run: scripts/remove_data.sh inappmessaging release_testing
  332. - uses: actions/upload-artifact@v2
  333. if: ${{ failure() }}
  334. with:
  335. name: quickstart_artifacts_inappmessaging
  336. path: quickstart-ios/
  337. messaging_quickstart:
  338. # Don't run on private repo unless it is a PR.
  339. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  340. needs: buildup_SpecsTesting_repo
  341. env:
  342. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  343. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  344. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  345. testing_repo_dir: "/tmp/test/"
  346. testing_repo: "firebase-ios-sdk"
  347. runs-on: macos-11
  348. steps:
  349. - uses: actions/checkout@v2
  350. - name: Get token
  351. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  352. bot-access.txt "$bot_token_secret"
  353. - name: Setup testing repo and quickstart
  354. run: |
  355. botaccess=`cat bot-access.txt`
  356. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh messaging nightly_release_testing
  357. - name: Install Secret GoogleService-Info.plist
  358. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  359. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  360. - name: Test objc quickstart
  361. run: ([ -z $plist_secret ] ||
  362. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false)
  363. - name: Test swift quickstart
  364. run: ([ -z $plist_secret ] ||
  365. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false swift)
  366. - name: Remove data before upload
  367. run: scripts/remove_data.sh messaging release_testing
  368. - uses: actions/upload-artifact@v2
  369. if: ${{ failure() }}
  370. with:
  371. name: quickstart_artifacts_messaging
  372. path: quickstart-ios/
  373. remoteconfig_quickstart:
  374. # Don't run on private repo unless it is a PR.
  375. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  376. needs: buildup_SpecsTesting_repo
  377. env:
  378. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  379. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  380. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  381. runs-on: macos-11
  382. steps:
  383. - uses: actions/checkout@v2
  384. - name: Get token
  385. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  386. bot-access.txt "$bot_token_secret"
  387. - name: Setup testing repo and quickstart
  388. run: |
  389. botaccess=`cat bot-access.txt`
  390. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh config nightly_release_testing
  391. - name: Install Secret GoogleService-Info.plist
  392. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  393. quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
  394. - name: Test Swift Quickstart
  395. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Config true)
  396. - name: Remove data before upload
  397. run: scripts/remove_data.sh config release_testing
  398. - uses: actions/upload-artifact@v2
  399. if: ${{ failure() }}
  400. with:
  401. name: quickstart_artifacts_config
  402. path: quickstart-ios/
  403. storage_quickstart:
  404. # Don't run on private repo unless it is a PR.
  405. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  406. needs: buildup_SpecsTesting_repo
  407. env:
  408. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  409. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  410. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  411. testing_repo_dir: "/tmp/test/"
  412. testing_repo: "firebase-ios-sdk"
  413. runs-on: macos-11
  414. steps:
  415. - uses: actions/checkout@v2
  416. - name: Get token
  417. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  418. bot-access.txt "$bot_token_secret"
  419. - name: Setup testing repo and quickstart
  420. run: |
  421. botaccess=`cat bot-access.txt`
  422. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh storage nightly_release_testing
  423. - name: Install Secret GoogleService-Info.plist
  424. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  425. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  426. - name: Test objc quickstart
  427. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true)
  428. - name: Test swift quickstart
  429. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true swift)
  430. - name: Remove data before upload
  431. run: scripts/remove_data.sh storage release_testing
  432. - uses: actions/upload-artifact@v2
  433. if: ${{ failure() }}
  434. with:
  435. name: quickstart_artifacts_storage
  436. path: quickstart-ios/
  437. performance_quickstart:
  438. # Don't run on private repo unless it is a PR.
  439. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  440. needs: buildup_SpecsTesting_repo
  441. env:
  442. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  443. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  444. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  445. testing_repo_dir: "/tmp/test/"
  446. testing_repo: "firebase-ios-sdk"
  447. runs-on: macos-11
  448. steps:
  449. - uses: actions/checkout@v2
  450. - name: Get token
  451. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  452. bot-access.txt "$bot_token_secret"
  453. - name: Setup testing repo and quickstart
  454. run: |
  455. botaccess=`cat bot-access.txt`
  456. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Performance nightly_release_testing
  457. - name: Install Secret GoogleService-Info.plist
  458. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
  459. quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
  460. - name: Test objc quickstart
  461. run: |
  462. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true)
  463. - name: Test swift quickstart
  464. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true swift)
  465. - name: Remove data before upload
  466. run: scripts/remove_data.sh performance release_testing
  467. - uses: actions/upload-artifact@v2
  468. if: ${{ failure() }}
  469. with:
  470. name: quickstart_artifacts_performance
  471. path: quickstart-ios/