core_internal.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: core_internal
  2. permissions:
  3. contents: read
  4. on:
  5. workflow_dispatch:
  6. pull_request:
  7. paths:
  8. - 'FirebaseCoreInternal.podspec'
  9. - 'FirebaseCore/Internal/**'
  10. - '.github/workflows/core_internal.yml'
  11. - '.github/workflows/common.yml'
  12. - '.github/workflows/common_cocoapods.yml'
  13. - '.github/workflows/common_catalyst.yml'
  14. - 'Gemfile*'
  15. schedule:
  16. # Run every day at 2am (PST) - cron uses UTC times
  17. - cron: '0 10 * * *'
  18. jobs:
  19. spm:
  20. uses: ./.github/workflows/common.yml
  21. with:
  22. target: FirebaseCoreInternalTests
  23. catalyst:
  24. strategy:
  25. matrix:
  26. target: [FirebaseCoreInternal-Unit-Unit, FirebaseCoreInternal-Unit-Integration]
  27. uses: ./.github/workflows/common_catalyst.yml
  28. with:
  29. product: FirebaseCoreInternal
  30. target: ${{ matrix.target }}
  31. pod_lib_lint:
  32. uses: ./.github/workflows/common_cocoapods.yml
  33. with:
  34. product: FirebaseCoreInternal
  35. supports_swift6: true
  36. core-internal-cron-only:
  37. # Don't run on private repo.
  38. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  39. runs-on: macos-15
  40. strategy:
  41. matrix:
  42. target: [ios, tvos, macos]
  43. flags: [
  44. '--use-static-frameworks'
  45. ]
  46. needs: pod_lib_lint
  47. steps:
  48. - uses: actions/checkout@v4
  49. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  50. - name: Xcode
  51. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  52. - name: Setup Bundler
  53. run: scripts/setup_bundler.sh
  54. - name: PodLibLint CoreInternal Cron
  55. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}