firestore.yml 20 KB

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