prerelease.yml 25 KB

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