firestore.yml 21 KB

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