firestore.yml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  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@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # 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@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # 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@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # 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-15
  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@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # 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-15
  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@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  309. - name: Setup Bundler
  310. run: ./scripts/setup_bundler.sh
  311. - name: Xcode
  312. run: sudo xcode-select -s /Applications/Xcode_16.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-15, macos-14]
  340. # Skip matrix cells covered by pod-lib-lint job.
  341. exclude:
  342. - os: macos-15
  343. platforms: 'ios'
  344. runs-on: ${{ matrix.os }}
  345. steps:
  346. - uses: actions/checkout@v4
  347. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  348. - name: Setup Bundler
  349. run: ./scripts/setup_bundler.sh
  350. - name: Xcode
  351. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  352. - name: Pod lib lint
  353. # TODO(#9565, b/227461966): Remove --no-analyze when absl is fixed.
  354. run: |
  355. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }}\
  356. ${{ matrix.flags }} \
  357. --platforms=${{ matrix.platforms }} \
  358. --allow-warnings \
  359. --no-analyze
  360. spm-package-resolved:
  361. runs-on: macos-14
  362. env:
  363. FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
  364. FIREBASE_SOURCE_FIRESTORE: 1
  365. outputs:
  366. cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
  367. steps:
  368. - uses: actions/checkout@v4
  369. - name: Xcode
  370. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  371. - name: Generate Swift Package.resolved
  372. id: swift_package_resolve
  373. run: |
  374. swift package resolve
  375. - name: Generate cache key
  376. id: generate_cache_key
  377. run: |
  378. cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
  379. echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
  380. - uses: actions/cache/save@v4
  381. id: cache
  382. with:
  383. path: .build
  384. key: ${{ steps.generate_cache_key.outputs.cache_key }}
  385. spm-source:
  386. needs: [check, spm-package-resolved]
  387. # Either a scheduled run from public repo, or a pull request with firestore changes.
  388. if: |
  389. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  390. (github.event_name == 'pull_request')
  391. strategy:
  392. matrix:
  393. include:
  394. - os: macos-14
  395. xcode: Xcode_16.2
  396. target: iOS
  397. - os: macos-15
  398. xcode: Xcode_16.2
  399. target: iOS
  400. - os: macos-15
  401. xcode: Xcode_16.2
  402. target: tvOS
  403. - os: macos-15
  404. xcode: Xcode_16.2
  405. target: macOS
  406. - os: macos-15
  407. xcode: Xcode_16.2
  408. target: catalyst
  409. - os: macos-15
  410. xcode: Xcode_16.2
  411. target: visionOS
  412. runs-on: ${{ matrix.os }}
  413. env:
  414. FIREBASE_SOURCE_FIRESTORE: 1
  415. steps:
  416. - uses: actions/checkout@v4
  417. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  418. with:
  419. cache_key: spm${{ matrix.os }}-${{ matrix.xcode }}-${{ matrix.target }}
  420. - name: Xcode
  421. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  422. - name: Initialize xcodebuild
  423. run: scripts/setup_spm_tests.sh
  424. - name: iOS Build Test
  425. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
  426. spm-binary:
  427. needs: check
  428. # Either a scheduled run from public repo, or a pull request with firestore changes.
  429. if: |
  430. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  431. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  432. runs-on: macos-15
  433. steps:
  434. - uses: actions/checkout@v4
  435. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  436. with:
  437. cache_key: spm-binary
  438. - name: Xcode
  439. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  440. - name: Initialize xcodebuild
  441. run: scripts/setup_spm_tests.sh
  442. - name: iOS Build Test
  443. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore iOS spmbuildonly
  444. check-firestore-internal-public-headers:
  445. needs: check
  446. # Either a scheduled run from public repo, or a pull request with firestore changes.
  447. if: |
  448. (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
  449. (github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
  450. runs-on: macos-14
  451. steps:
  452. - uses: actions/checkout@v4
  453. - name: Assert that Firestore and FirestoreInternal have identically named headers.
  454. run: |
  455. fst_dir=Firestore/Source/Public/FirebaseFirestore/
  456. fst_internal_dir=FirebaseFirestoreInternal/FirebaseFirestore/
  457. comparison=$(comm -3 <(ls $fst_dir | sort) <(ls $fst_internal_dir | sort))
  458. if [[ -z "$comparison" ]]; then
  459. echo "Success: Directories '$fst_dir' and '$fst_internal_dir' match."
  460. else
  461. echo "Error: Directories '$fst_dir' and '$fst_internal_dir' differ:"
  462. echo "Files only in '$fst_dir':"
  463. # Files in this set do not start with whitespace. Grep for them and a
  464. # dashed prefix for nicer formatting.
  465. echo "$comparison" | grep -v '^\s' | sed 's/^/- /'
  466. echo "Files only in '$fst_internal_dir':"
  467. # Files in this set start with whitespace. Grep for them and a dashed
  468. # prefix for nicer formatting.
  469. echo "$comparison" | grep '^\s' | sed 's/^ /- /'
  470. exit 1
  471. fi
  472. # TODO: Re-enable either in or after #11706.
  473. # spm-source-cron:
  474. # # Don't run on private repo.
  475. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  476. # runs-on: macos-14
  477. # strategy:
  478. # matrix:
  479. # target: [tvOS, macOS, catalyst]
  480. # env:
  481. # FIREBASE_SOURCE_FIRESTORE: 1
  482. # steps:
  483. # - uses: actions/checkout@v4
  484. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  485. # with:
  486. # cache_key: ${{ matrix.os }}
  487. # - name: Initialize xcodebuild
  488. # run: scripts/setup_spm_tests.sh
  489. # - name: Build Test - Binary
  490. # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
  491. spm-binary-cron:
  492. # Don't run on private repo.
  493. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  494. runs-on: macos-15
  495. strategy:
  496. matrix:
  497. target: [tvOS, macOS, catalyst]
  498. steps:
  499. - uses: actions/checkout@v4
  500. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  501. with:
  502. cache_key: ${{ matrix.target }}
  503. - name: Xcode
  504. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  505. - name: Initialize xcodebuild
  506. run: scripts/setup_spm_tests.sh
  507. - name: Build Test - Binary
  508. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly
  509. # A job that fails if any required job in the test matrix fails,
  510. # to be used as a required check for merging.
  511. check-required-tests:
  512. runs-on: ubuntu-latest
  513. name: Check all required Firestore tests results
  514. needs: [cmake, cmake-prod-db, xcodebuild, spm-source, spm-binary]
  515. steps:
  516. - name: Check test matrix
  517. if: needs.*.result == 'failure'
  518. run: exit 1
  519. # Disable until FirebaseUI is updated to accept Firebase 9 and quickstart is updated to accept
  520. # Firebase UI 12
  521. # quickstart:
  522. # # Don't run on private repo unless it is a PR.
  523. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  524. # env:
  525. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  526. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  527. # runs-on: macos-14
  528. # needs: check
  529. # steps:
  530. # - uses: actions/checkout@v4
  531. # - name: Setup quickstart
  532. # run: scripts/setup_quickstart.sh firestore
  533. # - name: Install Secret GoogleService-Info.plist
  534. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-firestore.plist.gpg \
  535. # quickstart-ios/firestore/GoogleService-Info.plist "$plist_secret"
  536. # - name: Test swift quickstart
  537. # run: ([ -z $plist_secret ] ||
  538. # scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Firestore false)