firestore.yml 21 KB

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