database.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. name: database
  2. permissions:
  3. contents: read
  4. on:
  5. workflow_dispatch:
  6. pull_request:
  7. paths:
  8. - 'FirebaseDatabase**'
  9. - 'Firebase/Database/**'
  10. - 'FirebaseSharedSwift**'
  11. - 'Example/Database/**'
  12. - 'FirebaseAuth/Interop/*.h'
  13. - '.github/workflows/database.yml'
  14. - '.github/workflows/common.yml'
  15. - '.github/workflows/common_cocoapods.yml'
  16. - '.github/workflows/common_catalyst.yml'
  17. - '.github/workflows/common_quickstart.yml'
  18. - '.github/workflows/common_cocoapods_cron.yml'
  19. - 'Gemfile*'
  20. - 'scripts/run_database_emulator.sh'
  21. schedule:
  22. # Run every day at 3am (PDT) / 6am (EDT) - cron uses UTC times
  23. - cron: '0 10 * * *'
  24. concurrency:
  25. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  26. cancel-in-progress: true
  27. jobs:
  28. # spm:
  29. # strategy:
  30. # matrix:
  31. # target: [DatabaseUnit, DatabaseUnitSwift]
  32. # uses: ./.github/workflows/common.yml
  33. # with:
  34. # target: ${{ matrix.target }}
  35. # catalyst:
  36. # uses: ./.github/workflows/common_catalyst.yml
  37. # with:
  38. # product: FirebaseDatabase
  39. # target: FirebaseDatabase-Unit-unit
  40. # pod_lib_lint:
  41. # uses: ./.github/workflows/common_cocoapods.yml
  42. # with:
  43. # product: FirebaseDatabase
  44. # test_specs: unit
  45. # buildonly_platforms: macOS
  46. # integration:
  47. # # Don't run on private repo unless it is a PR.
  48. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  49. # runs-on: macos-15
  50. # steps:
  51. # - uses: actions/checkout@v4
  52. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  53. # with:
  54. # cache_key: integration${{ matrix.os }}
  55. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  56. # - name: Setup Bundler
  57. # run: scripts/setup_bundler.sh
  58. # - name: Install xcpretty
  59. # run: gem install xcpretty
  60. # - name: Xcode
  61. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  62. # - name: IntegrationTest
  63. # # Only iOS to mitigate flakes.
  64. # run: scripts/third_party/travis/retry.sh scripts/build.sh Database iOS integration
  65. quickstart:
  66. uses: ./.github/workflows/common_quickstart.yml
  67. with:
  68. product: Database
  69. setup_command: scripts/setup_quickstart_spm.sh database
  70. plist_src_path: scripts/gha-encrypted/qs-database.plist.gpg
  71. plist_dst_path: quickstart-ios/database/GoogleService-Info.plist
  72. run_tests: false
  73. secrets:
  74. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  75. # database-cron-only:
  76. # needs: pod_lib_lint
  77. # uses: ./.github/workflows/common_cocoapods_cron.yml
  78. # with:
  79. # product: FirebaseDatabase
  80. # platforms: '[ "ios", "tvos", "macos" ]'
  81. # flags: '[ "--skip-tests --use-static-frameworks" ]'