core_internal.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. name: core_internal
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseCoreInternal.podspec'
  6. - 'FirebaseCore/Internal/**'
  7. - '.github/workflows/core_internal.yml'
  8. - 'Gemfile*'
  9. schedule:
  10. # Run every day at 2am (PST) - cron uses UTC times
  11. - cron: '0 10 * * *'
  12. jobs:
  13. pod-lib-lint:
  14. # Don't run on private repo unless it is a PR.
  15. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  16. strategy:
  17. matrix:
  18. target: [ios, tvos, macos, watchos]
  19. os: [macos-12, macos-13]
  20. include:
  21. - os: macos-12
  22. xcode: Xcode_14.2
  23. - os: macos-13
  24. xcode: Xcode_15.2
  25. runs-on: ${{ matrix.os }}
  26. steps:
  27. - uses: actions/checkout@v4
  28. - uses: ruby/setup-ruby@v1
  29. - name: Setup Bundler
  30. run: scripts/setup_bundler.sh
  31. - name: Xcode
  32. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  33. - name: Build and test
  34. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }}
  35. spm:
  36. # Don't run on private repo unless it is a PR.
  37. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  38. strategy:
  39. matrix:
  40. target: [iOS, tvOS, macOS, catalyst, watchOS]
  41. os: [macos-12, macos-13, macos-14]
  42. include:
  43. - os: macos-12
  44. xcode: Xcode_14.2
  45. - os: macos-13
  46. xcode: Xcode_15.2
  47. - os: macos-14
  48. xcode: Xcode_15.2
  49. - os: macos-14
  50. xcode: Xcode_15.2
  51. target: visionOS
  52. runs-on: ${{ matrix.os }}
  53. steps:
  54. - uses: actions/checkout@v4
  55. - name: Initialize xcodebuild
  56. run: scripts/setup_spm_tests.sh
  57. - name: Xcode
  58. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  59. - name: FirebaseCoreInternalTests
  60. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCoreInternalTests ${{ matrix.target }} spm
  61. catalyst:
  62. # Don't run on private repo unless it is a PR.
  63. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  64. runs-on: macos-12
  65. steps:
  66. - uses: actions/checkout@v4
  67. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  68. with:
  69. cache_key: catalyst${{ matrix.os }}
  70. - uses: ruby/setup-ruby@v1
  71. - name: Setup Bundler
  72. run: scripts/setup_bundler.sh
  73. - name: Setup Catalyst project and run unit tests
  74. run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Unit
  75. - name: Setup Catalyst project and run integration tests
  76. run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Integration
  77. core-internal-cron-only:
  78. # Don't run on private repo.
  79. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  80. runs-on: macos-12
  81. strategy:
  82. matrix:
  83. target: [ios, tvos, macos]
  84. flags: [
  85. '--use-static-frameworks'
  86. ]
  87. needs: pod-lib-lint
  88. steps:
  89. - uses: actions/checkout@v4
  90. - uses: ruby/setup-ruby@v1
  91. - name: Setup Bundler
  92. run: scripts/setup_bundler.sh
  93. - name: PodLibLint CoreInternal Cron
  94. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}