database.yml 4.8 KB

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