core_internal.yml 3.4 KB

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