database.yml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. # - 'Gemfile*'
  18. # - 'scripts/run_database_emulator.sh'
  19. schedule:
  20. # Run every day at 2am (PST) - cron uses UTC times
  21. - cron: '0 10 * * *'
  22. concurrency:
  23. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  24. cancel-in-progress: true
  25. jobs:
  26. # spm:
  27. # strategy:
  28. # matrix:
  29. # target: [DatabaseUnit, DatabaseUnitSwift]
  30. # uses: ./.github/workflows/common.yml
  31. # with:
  32. # target: ${{ matrix.target }}
  33. # catalyst:
  34. # uses: ./.github/workflows/common_catalyst.yml
  35. # with:
  36. # product: FirebaseDatabase
  37. # target: FirebaseDatabase-Unit-unit
  38. # pod_lib_lint:
  39. # uses: ./.github/workflows/common_cocoapods.yml
  40. # with:
  41. # product: FirebaseDatabase
  42. # test_specs: unit
  43. # buildonly_platforms: macOS
  44. integration:
  45. # Don't run on private repo unless it is a PR.
  46. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  47. runs-on: macos-15
  48. steps:
  49. - uses: actions/checkout@v4
  50. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  51. with:
  52. cache_key: integration${{ matrix.os }}
  53. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  54. - name: Setup Bundler
  55. run: scripts/setup_bundler.sh
  56. - name: Xcode
  57. run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  58. - name: IntegrationTest
  59. # Only iOS to mitigate flakes.
  60. run: |
  61. which java
  62. java --version
  63. scripts/build.sh Database iOS integration
  64. # quickstart:
  65. # # Don't run on private repo unless it is a PR.
  66. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  67. # env:
  68. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  69. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  70. # runs-on: macos-15
  71. # steps:
  72. # - uses: actions/checkout@v4
  73. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  74. # - name: Setup quickstart
  75. # run: scripts/setup_quickstart.sh database
  76. # - name: Install Secret GoogleService-Info.plist
  77. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
  78. # quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
  79. # - name: Xcode
  80. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  81. # - name: Test objc quickstart
  82. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false)
  83. # - name: Test swift quickstart
  84. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false swift)
  85. # database-cron-only:
  86. # # Don't run on private repo.
  87. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  88. # runs-on: macos-15
  89. # strategy:
  90. # matrix:
  91. # podspec: [FirebaseDatabase.podspec]
  92. # target: [ios, tvos, macos]
  93. # flags: [
  94. # '--skip-tests --use-static-frameworks'
  95. # ]
  96. # needs: pod_lib_lint
  97. # steps:
  98. # - uses: actions/checkout@v4
  99. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  100. # - name: Xcode
  101. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  102. # - name: Setup Bundler
  103. # run: scripts/setup_bundler.sh
  104. # - name: PodLibLint database Cron
  105. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} ${{ matrix.flags }}