firestore.yml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. # Copyright 2020 Google LLC
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. name: firestore
  15. on:
  16. workflow_dispatch:
  17. pull_request:
  18. schedule:
  19. # Run every day at 12am (PST) - cron uses UTC times
  20. - cron: '0 8 * * *'
  21. concurrency:
  22. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  23. cancel-in-progress: true
  24. jobs:
  25. changes:
  26. runs-on: macos-14
  27. # Only when this is not a scheduled run
  28. if: github.event_name != 'schedule'
  29. outputs:
  30. changed: ${{ steps.firestore_src_changes.outputs.sources == 'true' || steps.related_changes.outputs.other_changes == 'true' }}
  31. steps:
  32. - uses: dorny/paths-filter@v3.0.2
  33. id: firestore_src_changes
  34. with:
  35. predicate-quantifier: 'every'
  36. filters: |
  37. sources:
  38. # Firestore sources
  39. - 'Firestore/**'
  40. - '!Firestore/**/*.md'
  41. - uses: dorny/paths-filter@v3.0.2
  42. id: related_changes
  43. with:
  44. filters: |
  45. other_changes:
  46. # Interop headers
  47. - 'FirebaseAuth/Interop/*.h'
  48. # FirebaseCore header change
  49. - 'FirebaseCore/Internal'
  50. - 'FirebaseCore/Sources/Public'
  51. # Podspec
  52. - 'FirebaseFirestoreInternal.podspec'
  53. - 'FirebaseFirestore.podspec'
  54. # Package.swift
  55. - 'Package.swift'
  56. # CMake
  57. - '**CMakeLists.txt'
  58. - 'cmake/**'
  59. # Build scripts to which Firestore is sensitive
  60. #
  61. # Note that this doesn't include check scripts because changing those will
  62. # already trigger the check workflow.
  63. - 'scripts/binary_to_array.py'
  64. - 'scripts/build.sh'
  65. - 'scripts/install_prereqs.sh'
  66. - 'scripts/localize_podfile.swift'
  67. - 'scripts/pod_lib_lint.rb'
  68. - 'scripts/run_firestore_emulator.sh'
  69. - 'scripts/setup_*'
  70. - 'scripts/sync_project.rb'
  71. - 'scripts/test_quickstart.sh'
  72. - 'scripts/xcresult_logs.py'
  73. # This workflow
  74. - '.github/workflows/firestore.yml'
  75. # Rebuild on Ruby infrastructure changes.
  76. - 'Gemfile*'
  77. check:
  78. needs: changes
  79. # Either a scheduled run from public repo, or a pull request with firestore changes.
  80. if: |
  81. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  82. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  83. runs-on: macos-14
  84. steps:
  85. - uses: actions/checkout@v4
  86. - uses: actions/setup-python@v5
  87. with:
  88. python-version: 3.11
  89. - name: Setup check
  90. run: scripts/setup_check.sh
  91. - name: Run check
  92. run: scripts/check.sh --test-only
  93. cmake:
  94. needs: check
  95. # Either a scheduled run from public repo, or a pull request with firestore changes.
  96. if: |
  97. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  98. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  99. strategy:
  100. matrix:
  101. os: [macos-14, ubuntu-latest]
  102. env:
  103. MINT_PATH: ${{ github.workspace }}/mint
  104. runs-on: ${{ matrix.os }}
  105. steps:
  106. - uses: actions/checkout@v4
  107. - name: Prepare ccache
  108. uses: actions/cache@v4
  109. with:
  110. path: ${{ runner.temp }}/ccache
  111. key: firestore-ccache-${{ runner.os }}-${{ github.sha }}
  112. restore-keys: |
  113. firestore-ccache-${{ runner.os }}-
  114. - name: Cache Mint packages
  115. uses: actions/cache@v4
  116. with:
  117. path: ${{ env.MINT_PATH }}
  118. key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
  119. restore-keys: ${{ runner.os }}-mint-
  120. - uses: actions/setup-python@v5
  121. with:
  122. python-version: '3.11'
  123. - name: Setup build
  124. run: scripts/install_prereqs.sh Firestore ${{ runner.os }} cmake
  125. - name: Build and test
  126. run: |
  127. export EXPERIMENTAL_MODE=true
  128. export CCACHE_DIR=${{ runner.temp }}/ccache
  129. scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
  130. cmake-prod-db:
  131. needs: check
  132. # Either a scheduled run from public repo, or a pull request with firestore changes.
  133. if: |
  134. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  135. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  136. strategy:
  137. matrix:
  138. os: [macos-14]
  139. databaseId: [(default), test-db]
  140. env:
  141. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  142. MINT_PATH: ${{ github.workspace }}/mint
  143. TARGET_DATABASE_ID: ${{ matrix.databaseId }}
  144. runs-on: ${{ matrix.os }}
  145. steps:
  146. - uses: actions/checkout@v4
  147. - name: Prepare ccache
  148. uses: actions/cache@v4
  149. with:
  150. path: ${{ runner.temp }}/ccache
  151. key: firestore-ccache-${{ matrix.databaseId }}-${{ runner.os }}-${{ github.sha }}
  152. restore-keys: |
  153. firestore-ccache-${{ matrix.databaseId }}-${{ runner.os }}-
  154. - name: Cache Mint packages
  155. uses: actions/cache@v4
  156. with:
  157. path: ${{ env.MINT_PATH }}
  158. key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
  159. restore-keys: ${{ runner.os }}-mint-
  160. - uses: actions/setup-python@v5
  161. with:
  162. python-version: '3.11'
  163. - name: Install Secret GoogleService-Info.plist
  164. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/firestore.plist.gpg \
  165. Firestore/Example/App/GoogleService-Info.plist "$plist_secret"
  166. - name: Install Google Service Account key
  167. run: |
  168. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/firestore-integration.json.gpg \
  169. google-service-account.json "$plist_secret"
  170. # create composite indexes with Terraform
  171. - name: Set up Google Cloud SDK
  172. uses: google-github-actions/setup-gcloud@v1
  173. - name: Setup Terraform
  174. uses: hashicorp/setup-terraform@v2
  175. - name: Terraform Init
  176. run: |
  177. cd Firestore
  178. terraform init
  179. - name: Terraform Apply
  180. run: |
  181. cd Firestore
  182. # Define a temporary file, redirect both stdout and stderr to it
  183. output_file=$(mktemp)
  184. if ! terraform apply -var-file=../google-service-account.json -auto-approve > "$output_file" 2>&1 ; then
  185. cat "$output_file"
  186. if cat "$output_file" | grep -q "index already exists"; then
  187. echo "==================================================================================="
  188. echo "Terraform apply failed due to index already exists; We can safely ignore this error."
  189. echo "==================================================================================="
  190. fi
  191. exit 1
  192. fi
  193. rm -f "$output_file"
  194. env:
  195. GOOGLE_APPLICATION_CREDENTIALS: ../google-service-account.json
  196. continue-on-error: true
  197. - name: Setup build
  198. run: scripts/install_prereqs.sh Firestore ${{ runner.os }} cmake
  199. - name: Build and test
  200. run: |
  201. export CCACHE_DIR=${{ runner.temp }}/ccache
  202. scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
  203. sanitizers-mac:
  204. needs: check
  205. # Either a scheduled run from public repo, or a pull request with firestore changes.
  206. if: |
  207. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  208. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  209. strategy:
  210. matrix:
  211. os: [macos-14]
  212. sanitizer: [asan, tsan]
  213. runs-on: ${{ matrix.os }}
  214. env:
  215. SANITIZERS: ${{ matrix.sanitizer }}
  216. steps:
  217. - uses: actions/checkout@v4
  218. - name: Prepare ccache
  219. uses: actions/cache@v4
  220. with:
  221. path: ${{ runner.temp }}/ccache
  222. key: ${{ matrix.sanitizer }}-firestore-ccache-${{ runner.os }}-${{ github.sha }}
  223. restore-keys: |
  224. ${{ matrix.sanitizer }}-firestore-ccache-${{ runner.os }}-
  225. - uses: actions/setup-python@v5
  226. with:
  227. python-version: '3.11'
  228. - name: Setup build
  229. run: scripts/install_prereqs.sh Firestore ${{ runner.os }} cmake
  230. - name: Build and test
  231. run: |
  232. export EXPERIMENTAL_MODE=true
  233. export CCACHE_DIR=${{ runner.temp }}/ccache
  234. scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
  235. sanitizers-ubuntu:
  236. needs: check
  237. # Either a scheduled run from public repo, or a pull request with firestore changes.
  238. if: |
  239. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  240. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  241. strategy:
  242. matrix:
  243. os: [ubuntu-latest]
  244. # Excluding TSAN on ubuntu because of the warnings it generates around schedule.cc.
  245. # This could be due to Apple Clang provide additional support for synchronization
  246. # on Apple platforms, which is what we primarily care about.
  247. sanitizer: [asan]
  248. runs-on: ${{ matrix.os }}
  249. env:
  250. SANITIZERS: ${{ matrix.sanitizer }}
  251. ASAN_OPTIONS: detect_leaks=0
  252. steps:
  253. - uses: actions/checkout@v3
  254. - name: Prepare ccache
  255. uses: actions/cache@v4
  256. with:
  257. path: ${{ runner.temp }}/ccache
  258. key: ${{ matrix.sanitizer }}-firestore-ccache-${{ runner.os }}-${{ github.sha }}
  259. restore-keys: |
  260. ${{ matrix.sanitizer }}-firestore-ccache-${{ runner.os }}-
  261. - uses: actions/setup-python@v5
  262. with:
  263. python-version: '3.11'
  264. - name: Setup build
  265. run: scripts/install_prereqs.sh Firestore ${{ runner.os }} cmake
  266. - name: Build and test
  267. run: |
  268. export EXPERIMENTAL_MODE=true
  269. export CCACHE_DIR=${{ runner.temp }}/ccache
  270. scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ runner.os }} cmake
  271. xcodebuild:
  272. needs: check
  273. # Either a scheduled run from public repo, or a pull request with firestore changes.
  274. if: |
  275. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  276. (github.event_name == 'pull_request')
  277. runs-on: macos-14
  278. strategy:
  279. matrix:
  280. target: [iOS, macOS, tvOS]
  281. steps:
  282. - uses: actions/checkout@v4
  283. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  284. with:
  285. cache_key: ${{ matrix.target }}
  286. - uses: ruby/setup-ruby@v1
  287. - name: Setup build
  288. run: scripts/install_prereqs.sh Firestore ${{ matrix.target }} xcodebuild
  289. - name: Build and test
  290. run: |
  291. export EXPERIMENTAL_MODE=true
  292. scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ matrix.target }} xcodebuild
  293. pod-lib-lint:
  294. needs: check
  295. # Either a scheduled run from public repo, or a pull request with firestore changes.
  296. if: |
  297. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  298. (github.event_name == 'pull_request')
  299. runs-on: macos-14
  300. strategy:
  301. matrix:
  302. podspec: [
  303. 'FirebaseFirestoreInternal.podspec',
  304. 'FirebaseFirestore.podspec',
  305. ]
  306. steps:
  307. - uses: actions/checkout@v4
  308. - uses: ruby/setup-ruby@v1
  309. - name: Setup Bundler
  310. run: ./scripts/setup_bundler.sh
  311. - name: Xcode
  312. run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
  313. - name: Pod lib lint
  314. # TODO(#9565, b/227461966): Remove --no-analyze when absl is fixed.
  315. run: |
  316. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} \
  317. --platforms=ios \
  318. --allow-warnings \
  319. --no-analyze
  320. # `pod lib lint` takes a long time so only run the other platforms and static frameworks build in the cron.
  321. pod-lib-lint-cron:
  322. needs: check
  323. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  324. strategy:
  325. matrix:
  326. podspec: [
  327. 'FirebaseFirestoreInternal.podspec',
  328. 'FirebaseFirestore.podspec',
  329. ]
  330. platforms: [
  331. 'macos',
  332. 'tvos',
  333. 'ios',
  334. ]
  335. flags: [
  336. '--use-static-frameworks',
  337. '',
  338. ]
  339. os: [macos-14, macos-13]
  340. # TODO: grpc and its dependencies don't build on Xcode 15 for macos because their minimum macos is lower than 10.11.
  341. exclude:
  342. - os: macos-13
  343. platforms: 'macos'
  344. # Skip matrix cells covered by pod-lib-lint job.
  345. - os: macos-13
  346. platforms: 'ios'
  347. include:
  348. - os: macos-15
  349. xcode: Xcode_16
  350. - os: macos-13
  351. xcode: Xcode_15.2
  352. runs-on: ${{ matrix.os }}
  353. steps:
  354. - uses: actions/checkout@v4
  355. - uses: ruby/setup-ruby@v1
  356. - name: Setup Bundler
  357. run: ./scripts/setup_bundler.sh
  358. - name: Xcode
  359. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  360. - name: Pod lib lint
  361. # TODO(#9565, b/227461966): Remove --no-analyze when absl is fixed.
  362. run: |
  363. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }}\
  364. ${{ matrix.flags }} \
  365. --platforms=${{ matrix.platforms }} \
  366. --allow-warnings \
  367. --no-analyze
  368. spm-package-resolved:
  369. runs-on: macos-14
  370. env:
  371. FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  372. FIREBASE_SOURCE_FIRESTORE: 1
  373. outputs:
  374. cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
  375. steps:
  376. - uses: actions/checkout@v4
  377. - name: Generate Swift Package.resolved
  378. id: swift_package_resolve
  379. run: |
  380. swift package resolve
  381. - name: Generate cache key
  382. id: generate_cache_key
  383. run: |
  384. cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
  385. echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
  386. - uses: actions/cache/save@v4
  387. id: cache
  388. with:
  389. path: .build
  390. key: ${{ steps.generate_cache_key.outputs.cache_key }}
  391. spm-source:
  392. needs: [check, spm-package-resolved]
  393. # Either a scheduled run from public repo, or a pull request with firestore changes.
  394. if: |
  395. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  396. (github.event_name == 'pull_request')
  397. strategy:
  398. matrix:
  399. include:
  400. - os: macos-13
  401. xcode: Xcode_15.2
  402. target: iOS
  403. - os: macos-14
  404. xcode: Xcode_15.4
  405. target: iOS
  406. - os: macos-15
  407. xcode: Xcode_16
  408. target: iOS
  409. - os: macos-15
  410. xcode: Xcode_16
  411. target: tvOS
  412. - os: macos-15
  413. xcode: Xcode_16
  414. target: macOS
  415. - os: macos-15
  416. xcode: Xcode_16
  417. target: catalyst
  418. - os: macos-15
  419. xcode: Xcode_16
  420. target: visionOS
  421. runs-on: ${{ matrix.os }}
  422. env:
  423. FIREBASE_SOURCE_FIRESTORE: 1
  424. steps:
  425. - uses: actions/checkout@v4
  426. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  427. with:
  428. cache_key: spm${{ matrix.os }}-${{ matrix.xcode }}-${{ matrix.target }}
  429. - name: Xcode
  430. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  431. - name: Initialize xcodebuild
  432. run: scripts/setup_spm_tests.sh
  433. - name: iOS Build Test
  434. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
  435. spm-binary:
  436. needs: check
  437. # Either a scheduled run from public repo, or a pull request with firestore changes.
  438. if: |
  439. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  440. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  441. runs-on: macos-14
  442. steps:
  443. - uses: actions/checkout@v4
  444. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  445. with:
  446. cache_key: spm-binary
  447. - name: Initialize xcodebuild
  448. run: scripts/setup_spm_tests.sh
  449. - name: iOS Build Test
  450. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore iOS spmbuildonly
  451. check-firestore-internal-public-headers:
  452. needs: check
  453. # Either a scheduled run from public repo, or a pull request with firestore changes.
  454. if: |
  455. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  456. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  457. runs-on: macos-14
  458. steps:
  459. - uses: actions/checkout@v4
  460. - name: Assert that Firestore and FirestoreInternal have identically named headers.
  461. run: |
  462. fst_dir=Firestore/Source/Public/FirebaseFirestore/
  463. fst_internal_dir=FirebaseFirestoreInternal/FirebaseFirestore/
  464. comparison=$(comm -3 <(ls $fst_dir | sort) <(ls $fst_internal_dir | sort))
  465. if [[ -z "$comparison" ]]; then
  466. echo "Success: Directories '$fst_dir' and '$fst_internal_dir' match."
  467. else
  468. echo "Error: Directories '$fst_dir' and '$fst_internal_dir' differ:"
  469. echo "Files only in '$fst_dir':"
  470. # Files in this set do not start with whitespace. Grep for them and a
  471. # dashed prefix for nicer formatting.
  472. echo "$comparison" | grep -v '^\s' | sed 's/^/- /'
  473. echo "Files only in '$fst_internal_dir':"
  474. # Files in this set start with whitespace. Grep for them and a dashed
  475. # prefix for nicer formatting.
  476. echo "$comparison" | grep '^\s' | sed 's/^ /- /'
  477. exit 1
  478. fi
  479. # TODO: Re-enable either in or after #11706.
  480. # spm-source-cron:
  481. # # Don't run on private repo.
  482. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  483. # runs-on: macos-14
  484. # strategy:
  485. # matrix:
  486. # target: [tvOS, macOS, catalyst]
  487. # env:
  488. # FIREBASE_SOURCE_FIRESTORE: 1
  489. # steps:
  490. # - uses: actions/checkout@v4
  491. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  492. # with:
  493. # cache_key: ${{ matrix.os }}
  494. # - name: Initialize xcodebuild
  495. # run: scripts/setup_spm_tests.sh
  496. # - name: Build Test - Binary
  497. # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
  498. spm-binary-cron:
  499. # Don't run on private repo.
  500. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  501. runs-on: macos-14
  502. strategy:
  503. matrix:
  504. target: [tvOS, macOS, catalyst]
  505. steps:
  506. - uses: actions/checkout@v4
  507. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  508. with:
  509. cache_key: ${{ matrix.target }}
  510. - name: Initialize xcodebuild
  511. run: scripts/setup_spm_tests.sh
  512. - name: Build Test - Binary
  513. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
  514. # A job that fails if any required job in the test matrix fails,
  515. # to be used as a required check for merging.
  516. check-required-tests:
  517. runs-on: ubuntu-latest
  518. name: Check all required Firestore tests results
  519. needs: [cmake, cmake-prod-db, xcodebuild, spm-source, spm-binary]
  520. steps:
  521. - name: Check test matrix
  522. if: needs.*.result == 'failure'
  523. run: exit 1
  524. # Disable until FirebaseUI is updated to accept Firebase 9 and quickstart is updated to accept
  525. # Firebase UI 12
  526. # quickstart:
  527. # # Don't run on private repo unless it is a PR.
  528. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  529. # env:
  530. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  531. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  532. # runs-on: macos-14
  533. # needs: check
  534. # steps:
  535. # - uses: actions/checkout@v4
  536. # - name: Setup quickstart
  537. # run: scripts/setup_quickstart.sh firestore
  538. # - name: Install Secret GoogleService-Info.plist
  539. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  540. # quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  541. # - name: Test swift quickstart
  542. # run: ([ -z $plist_secret ] ||
  543. # scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore false)