core_internal.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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-14, macos-13]
  20. include:
  21. - os: macos-14
  22. xcode: Xcode_15.3
  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-13, macos-14]
  42. include:
  43. - os: macos-13
  44. xcode: Xcode_15.2
  45. - os: macos-14
  46. xcode: Xcode_15.3
  47. - os: macos-14
  48. xcode: Xcode_15.3
  49. target: visionOS
  50. runs-on: ${{ matrix.os }}
  51. steps:
  52. - uses: actions/checkout@v4
  53. - name: Initialize xcodebuild
  54. run: scripts/setup_spm_tests.sh
  55. - name: Xcode
  56. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  57. - name: FirebaseCoreInternalTests
  58. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCoreInternalTests ${{ matrix.target }} spm
  59. catalyst:
  60. # Don't run on private repo unless it is a PR.
  61. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  62. runs-on: macos-14
  63. steps:
  64. - uses: actions/checkout@v4
  65. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  66. with:
  67. cache_key: catalyst${{ matrix.os }}
  68. - uses: ruby/setup-ruby@v1
  69. - name: Setup Bundler
  70. run: scripts/setup_bundler.sh
  71. - name: Setup Catalyst project and run unit tests
  72. run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Unit
  73. - name: Setup Catalyst project and run integration tests
  74. run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Integration
  75. core-internal-cron-only:
  76. # Don't run on private repo.
  77. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  78. runs-on: macos-14
  79. strategy:
  80. matrix:
  81. target: [ios, tvos, macos]
  82. flags: [
  83. '--use-static-frameworks'
  84. ]
  85. needs: pod-lib-lint
  86. steps:
  87. - uses: actions/checkout@v4
  88. - uses: ruby/setup-ruby@v1
  89. - name: Setup Bundler
  90. run: scripts/setup_bundler.sh
  91. - name: PodLibLint CoreInternal Cron
  92. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}