prerelease.yml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. name: prerelease
  2. on:
  3. pull_request:
  4. # closed will be triggered when a pull request is merged. This is to keep https://github.com/firebase/SpecsTesting up to date.
  5. types: [closed]
  6. workflow_dispatch:
  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 == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  14. env:
  15. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  16. local_repo: specstesting
  17. # The SDK repo will be cloned to this dir and podspecs from
  18. # 'podspec_repo_branch' of this repo will be validated and pushed to the
  19. # testing repo.
  20. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
  21. podspec_repo_branch: master
  22. runs-on: macos-11
  23. steps:
  24. - uses: actions/checkout@v2
  25. - name: Get token
  26. run: |
  27. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/oss-bot-access.txt.gpg \
  28. oss-bot-access.txt "$bot_token_secret"
  29. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  30. bot-access.txt "$bot_token_secret"
  31. - name: Update SpecsTesting repo setup
  32. run: |
  33. ossbotaccess=`cat oss-bot-access.txt`
  34. BOT_TOKEN="${ossbotaccess}" test_version="${nightly_version}" sdk_version_config="${GITHUB_WORKSPACE}/scripts/create_spec_repo/RC_firebase_sdk.textproto" local_sdk_repo_dir="${local_sdk_repo_dir}" podspec_repo_branch="${podspec_repo_branch}" scripts/release_testing_setup.sh prerelease_testing
  35. - name: Update SpecsTesting repo
  36. run: |
  37. botaccess=`cat bot-access.txt`
  38. cd scripts/create_spec_repo/
  39. swift build
  40. pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/Firebase/SpecsTesting.git
  41. BOT_TOKEN="${botaccess}" .build/debug/spec-repo-builder --sdk-repo "${local_sdk_repo_dir}" --local-spec-repo-name "${local_repo}" --sdk-repo-name SpecsTesting --github-account Firebase --pod-sources 'https://${BOT_TOKEN}@github.com/Firebase/SpecsTesting' "https://github.com/firebase/SpecsDev.git" "https://github.com/firebase/SpecsStaging.git" "https://cdn.cocoapods.org/" --exclude-pods "FirebaseFirestoreTestingSupport" "FirebaseAuthTestingSupport" "FirebaseCombineSwift"
  42. - name: Clean Artifacts
  43. if: ${{ always() }}
  44. run: |
  45. pod repo remove "${local_repo}"
  46. rm -rf bot-access.txt
  47. update_SpecsTesting_repo:
  48. # Don't run on private repo unless it is a PR.
  49. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged == true
  50. runs-on: macos-11
  51. env:
  52. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  53. local_repo: specstesting
  54. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
  55. podspec_repo_branch: master
  56. steps:
  57. - uses: actions/checkout@v2
  58. - name: Get token
  59. run: |
  60. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/oss-bot-access.txt.gpg \
  61. oss-bot-access.txt "$bot_token_secret"
  62. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  63. bot-access.txt "$bot_token_secret"
  64. - name: Update SpecsTesting repo setup
  65. run: |
  66. ossbotaccess=`cat oss-bot-access.txt`
  67. # Update/create a nightly tag to the head of the master branch.
  68. BOT_TOKEN="${ossbotaccess}" test_version="${nightly_version}" sdk_version_config="${GITHUB_WORKSPACE}/scripts/create_spec_repo/RC_firebase_sdk.textproto" local_sdk_repo_dir="${local_sdk_repo_dir}" podspec_repo_branch="${podspec_repo_branch}" scripts/release_testing_setup.sh prerelease_testing
  69. - name: Push updated podspecs
  70. run: |
  71. botaccess=`cat bot-access.txt`
  72. cd "${local_sdk_repo_dir}"
  73. # Changes in post submit tests will be fetched by getting diff between
  74. # the HEAD and HEAD^ of the master branch.
  75. common_commit=$(git rev-parse HEAD^)
  76. git diff --name-only $common_commit remotes/origin/${podspec_repo_branch} > updated_files.txt
  77. updated_podspecs=()
  78. while IFS= read -r line;
  79. do
  80. echo $line
  81. if [ ${line: -8} == ".podspec" ]
  82. then
  83. updated_podspecs+=("$(basename -s .podspec ${line})")
  84. fi
  85. done < updated_files.txt
  86. if [ -z "$updated_podspecs" ]
  87. then
  88. exit
  89. fi
  90. cd scripts/create_spec_repo/
  91. swift build
  92. pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/Firebase/SpecsTesting.git
  93. BOT_TOKEN="${botaccess}" .build/debug/spec-repo-builder --sdk-repo "${local_sdk_repo_dir}" --local-spec-repo-name "${local_repo}" --sdk-repo-name SpecsTesting --github-account Firebase --pod-sources 'https://${BOT_TOKEN}@github.com/Firebase/SpecsTesting' "https://github.com/firebase/SpecsDev.git" "https://github.com/firebase/SpecsStaging.git" "https://cdn.cocoapods.org/" "FirebaseFirestoreTestingSupport" "FirebaseAuthTestingSupport" "FirebaseCombineSwift" --keep-repo --include-pods "${updated_podspecs[@]}"
  94. abtesting_quickstart:
  95. # Don't run on private repo unless it is a PR.
  96. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  97. needs: buildup_SpecsTesting_repo
  98. env:
  99. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  100. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  101. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  102. runs-on: macos-11
  103. steps:
  104. - uses: actions/checkout@v2
  105. - name: Get token
  106. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  107. bot-access.txt "$bot_token_secret"
  108. - name: Setup testing repo and quickstart
  109. env:
  110. LEGACY: true
  111. run: |
  112. botaccess=`cat bot-access.txt`
  113. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh abtesting prerelease_testing
  114. - name: Install Secret GoogleService-Info.plist
  115. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
  116. quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
  117. - name: Test swift quickstart
  118. env:
  119. LEGACY: true
  120. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh ABTesting true)
  121. - name: Remove data before upload
  122. env:
  123. LEGACY: true
  124. run: scripts/remove_data.sh config release_testing
  125. - uses: actions/upload-artifact@v2
  126. if: ${{ failure() }}
  127. with:
  128. name: quickstart_artifacts_abtesting
  129. path: quickstart-ios/
  130. auth_quickstart:
  131. # Don't run on private repo unless it is a PR.
  132. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  133. needs: buildup_SpecsTesting_repo
  134. env:
  135. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  136. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  137. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  138. runs-on: macos-11
  139. steps:
  140. - uses: actions/checkout@v2
  141. - name: Get token
  142. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  143. bot-access.txt "$bot_token_secret"
  144. - name: Setup testing repo and quickstart
  145. run: |
  146. botaccess=`cat bot-access.txt`
  147. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Authentication prerelease_testing
  148. - name: Install Secret GoogleService-Info.plist
  149. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-auth.plist.gpg \
  150. quickstart-ios/authentication/GoogleService-Info.plist "$plist_secret"
  151. - name: Test swift quickstart
  152. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Authentication false)
  153. - name: Remove data before upload
  154. run: scripts/remove_data.sh authentication release_testing
  155. - uses: actions/upload-artifact@v2
  156. if: ${{ failure() }}
  157. with:
  158. name: quickstart_artifacts_auth
  159. path: quickstart-ios/
  160. crashlytics_quickstart:
  161. # Don't run on private repo unless it is a PR.
  162. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  163. needs: buildup_SpecsTesting_repo
  164. env:
  165. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  166. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  167. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  168. testing_repo_dir: "/tmp/test/"
  169. testing_repo: "firebase-ios-sdk"
  170. runs-on: macos-11
  171. steps:
  172. - uses: actions/checkout@v2
  173. - name: Get token
  174. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  175. bot-access.txt "$bot_token_secret"
  176. - name: Setup testing repo and quickstart
  177. env:
  178. LEGACY: true
  179. run: |
  180. botaccess=`cat bot-access.txt`
  181. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Crashlytics prerelease_testing
  182. - name: Install Secret GoogleService-Info.plist
  183. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  184. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  185. - name: Test objc quickstart
  186. env:
  187. LEGACY: true
  188. run: |
  189. mkdir -p quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
  190. # Set the deployed pod location of run and upload-symbols with the development pod version.
  191. cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  192. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  193. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true)
  194. - name: Test swift quickstart
  195. env:
  196. LEGACY: true
  197. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true swift)
  198. - name: Remove data before upload
  199. env:
  200. LEGACY: true
  201. run: scripts/remove_data.sh crashlytics release_testing
  202. - uses: actions/upload-artifact@v2
  203. if: ${{ failure() }}
  204. with:
  205. name: quickstart_artifacts_crashlytics
  206. path: quickstart-ios/
  207. database_quickstart:
  208. # Don't run on private repo unless it is a PR.
  209. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  210. needs: buildup_SpecsTesting_repo
  211. env:
  212. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  213. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  214. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  215. testing_repo_dir: "/tmp/test/"
  216. testing_repo: "firebase-ios-sdk"
  217. runs-on: macos-11
  218. steps:
  219. - uses: actions/checkout@v2
  220. - name: Get token
  221. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  222. bot-access.txt "$bot_token_secret"
  223. - name: Setup testing repo and quickstart
  224. run: |
  225. botaccess=`cat bot-access.txt`
  226. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh database prerelease_testing
  227. - name: Install Secret GoogleService-Info.plist
  228. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  229. quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  230. - name: Test objc quickstart
  231. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false)
  232. - name: Test swift quickstart
  233. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false swift)
  234. - name: Remove data before upload
  235. run: scripts/remove_data.sh database release_testing
  236. - uses: actions/upload-artifact@v2
  237. if: ${{ failure() }}
  238. with:
  239. name: quickstart_artifacts_database
  240. path: quickstart-ios/
  241. dynamiclinks_quickstart:
  242. # Don't run on private repo unless it is a PR.
  243. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  244. needs: buildup_SpecsTesting_repo
  245. env:
  246. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  247. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  248. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  249. testing_repo_dir: "/tmp/test/"
  250. testing_repo: "firebase-ios-sdk"
  251. runs-on: macos-11
  252. steps:
  253. - uses: actions/checkout@v2
  254. - name: Get token
  255. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  256. bot-access.txt "$bot_token_secret"
  257. - name: Setup testing repo and quickstart
  258. run: |
  259. botaccess=`cat bot-access.txt`
  260. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh dynamiclinks prerelease_testing
  261. - name: Install Secret GoogleService-Info.plist
  262. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-dynamiclinks.plist.gpg \
  263. quickstart-ios/dynamiclinks/GoogleService-Info.plist "$plist_secret"
  264. - name: Update Environment Variable For DynamicLinks
  265. run: |
  266. sed -i '' 's#DYNAMIC_LINK_DOMAIN#https://qpf6m.app.goo.gl#' quickstart-ios/dynamiclinks/DynamicLinksExample/DynamicLinksExample.entitlements
  267. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExample/ViewController.m
  268. sed -i '' 's#YOUR_DOMAIN_URI_PREFIX";#https://qpf6m.app.goo.gl";#' quickstart-ios/dynamiclinks/DynamicLinksExampleSwift/ViewController.swift
  269. - name: Test objc quickstart
  270. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true)
  271. - name: Test swift quickstart
  272. if: ${{ always() }}
  273. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh DynamicLinks true swift)
  274. - name: Remove data before upload
  275. run: scripts/remove_data.sh dynamiclinks release_testing
  276. - uses: actions/upload-artifact@v2
  277. if: ${{ failure() }}
  278. with:
  279. name: quickstart_artifacts_dynamiclinks
  280. path: quickstart-ios/
  281. firestore_quickstart:
  282. # Don't run on private repo unless it is a PR.
  283. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  284. needs: buildup_SpecsTesting_repo
  285. env:
  286. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  287. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  288. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  289. testing_repo_dir: "/tmp/test/"
  290. testing_repo: "firebase-ios-sdk"
  291. runs-on: macos-11
  292. steps:
  293. - uses: actions/checkout@v2
  294. - name: Get token
  295. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  296. bot-access.txt "$bot_token_secret"
  297. - name: Setup testing repo and quickstart
  298. run: |
  299. botaccess=`cat bot-access.txt`
  300. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh firestore prerelease_testing
  301. - name: Install Secret GoogleService-Info.plist
  302. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  303. quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  304. - name: Test swift quickstart
  305. run: ([ -z $plist_secret ] ||
  306. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore false)
  307. - name: Remove data before upload
  308. run: scripts/remove_data.sh firestore release_testing
  309. - uses: actions/upload-artifact@v2
  310. if: ${{ failure() }}
  311. with:
  312. name: quickstart_artifacts_firestore
  313. path: quickstart-ios/
  314. functions_quickstart:
  315. # Don't run on private repo unless it is a PR.
  316. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  317. needs: buildup_SpecsTesting_repo
  318. env:
  319. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  320. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  321. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  322. testing_repo_dir: "/tmp/test/"
  323. testing_repo: "firebase-ios-sdk"
  324. LEGACY: true
  325. runs-on: macos-11
  326. steps:
  327. - uses: actions/checkout@v2
  328. - name: Get token
  329. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  330. bot-access.txt "$bot_token_secret"
  331. - name: Setup testing repo and quickstart
  332. run: |
  333. botaccess=`cat bot-access.txt`
  334. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions prerelease_testing
  335. - name: install secret googleservice-info.plist
  336. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
  337. quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
  338. - name: Setup custom URL scheme
  339. run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/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 true)
  343. - name: Test swift quickstart
  344. run: ([ -z $plist_secret ] ||
  345. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
  346. - name: Remove data before upload
  347. run: scripts/remove_data.sh functions release_testing
  348. - uses: actions/upload-artifact@v2
  349. if: ${{ failure() }}
  350. with:
  351. name: quickstart_artifacts_functions
  352. path: quickstart-ios/
  353. inappmessaging_quickstart:
  354. # Don't run on private repo unless it is a PR.
  355. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  356. needs: buildup_SpecsTesting_repo
  357. env:
  358. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  359. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  360. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  361. testing_repo_dir: "/tmp/test/"
  362. testing_repo: "firebase-ios-sdk"
  363. runs-on: macos-11
  364. steps:
  365. - uses: actions/checkout@v2
  366. - name: Get token
  367. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  368. bot-access.txt "$bot_token_secret"
  369. - name: Setup testing repo and quickstart
  370. run: |
  371. botaccess=`cat bot-access.txt`
  372. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh inappmessaging prerelease_testing
  373. - name: install secret googleservice-info.plist
  374. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  375. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  376. - name: Test objc quickstart
  377. run: ([ -z $plist_secret ] ||
  378. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true)
  379. - name: Test swift quickstart
  380. run: ([ -z $plist_secret ] ||
  381. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true swift)
  382. - name: Remove data before upload
  383. run: scripts/remove_data.sh inappmessaging release_testing
  384. - uses: actions/upload-artifact@v2
  385. if: ${{ failure() }}
  386. with:
  387. name: quickstart_artifacts_inappmessaging
  388. path: quickstart-ios/
  389. messaging_quickstart:
  390. # Don't run on private repo unless it is a PR.
  391. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  392. needs: buildup_SpecsTesting_repo
  393. env:
  394. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  395. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  396. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  397. testing_repo_dir: "/tmp/test/"
  398. testing_repo: "firebase-ios-sdk"
  399. runs-on: macos-11
  400. steps:
  401. - uses: actions/checkout@v2
  402. - name: Get token
  403. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  404. bot-access.txt "$bot_token_secret"
  405. - name: Setup testing repo and quickstart
  406. run: |
  407. botaccess=`cat bot-access.txt`
  408. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh messaging prerelease_testing
  409. - name: Install Secret GoogleService-Info.plist
  410. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  411. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  412. - name: Test objc quickstart
  413. run: ([ -z $plist_secret ] ||
  414. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false)
  415. - name: Test swift quickstart
  416. run: ([ -z $plist_secret ] ||
  417. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false swift)
  418. - name: Remove data before upload
  419. run: scripts/remove_data.sh messaging release_testing
  420. - uses: actions/upload-artifact@v2
  421. if: ${{ failure() }}
  422. with:
  423. name: quickstart_artifacts_messaging
  424. path: quickstart-ios/
  425. remoteconfig_quickstart:
  426. # Don't run on private repo unless it is a PR.
  427. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  428. needs: buildup_SpecsTesting_repo
  429. env:
  430. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  431. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  432. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  433. runs-on: macos-11
  434. steps:
  435. - uses: actions/checkout@v2
  436. - name: Get token
  437. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  438. bot-access.txt "$bot_token_secret"
  439. - name: Setup testing repo and quickstart
  440. run: |
  441. botaccess=`cat bot-access.txt`
  442. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh config prerelease_testing
  443. - name: Install Secret GoogleService-Info.plist
  444. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
  445. quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
  446. - name: Test Swift Quickstart
  447. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Config true)
  448. - name: Remove data before upload
  449. run: scripts/remove_data.sh config release_testing
  450. - uses: actions/upload-artifact@v2
  451. if: ${{ failure() }}
  452. with:
  453. name: quickstart_artifacts_config
  454. path: quickstart-ios/
  455. storage_quickstart:
  456. # Don't run on private repo unless it is a PR.
  457. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  458. needs: buildup_SpecsTesting_repo
  459. env:
  460. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  461. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  462. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  463. testing_repo_dir: "/tmp/test/"
  464. testing_repo: "firebase-ios-sdk"
  465. runs-on: macos-11
  466. steps:
  467. - uses: actions/checkout@v2
  468. - name: Get token
  469. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  470. bot-access.txt "$bot_token_secret"
  471. - name: Setup testing repo and quickstart
  472. run: |
  473. botaccess=`cat bot-access.txt`
  474. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh storage prerelease_testing
  475. - name: Install Secret GoogleService-Info.plist
  476. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  477. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  478. - name: Test objc quickstart
  479. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true)
  480. - name: Test swift quickstart
  481. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true swift)
  482. - name: Remove data before upload
  483. run: scripts/remove_data.sh storage release_testing
  484. - uses: actions/upload-artifact@v2
  485. if: ${{ failure() }}
  486. with:
  487. name: quickstart_artifacts_storage
  488. path: quickstart-ios/
  489. performance_quickstart:
  490. # Don't run on private repo unless it is a PR.
  491. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
  492. needs: buildup_SpecsTesting_repo
  493. env:
  494. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  495. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  496. bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  497. testing_repo_dir: "/tmp/test/"
  498. testing_repo: "firebase-ios-sdk"
  499. runs-on: macos-11
  500. steps:
  501. - uses: actions/checkout@v2
  502. - name: Get token
  503. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
  504. bot-access.txt "$bot_token_secret"
  505. - name: Setup testing repo and quickstart
  506. run: |
  507. botaccess=`cat bot-access.txt`
  508. BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh Performance prerelease_testing
  509. - name: Install Secret GoogleService-Info.plist
  510. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
  511. quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
  512. - name: Test objc quickstart
  513. run: |
  514. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true)
  515. - name: Test swift quickstart
  516. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true swift)
  517. - name: Remove data before upload
  518. run: scripts/remove_data.sh performance release_testing
  519. - uses: actions/upload-artifact@v2
  520. if: ${{ failure() }}
  521. with:
  522. name: quickstart_artifacts_performance
  523. path: quickstart-ios/