core_internal.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. runs-on: macos-12
  17. strategy:
  18. matrix:
  19. target: [ios, tvos, macos]
  20. env:
  21. # This env var is set because the job has a dependency on the unpublished HeatbeatLoggingTestUtils.
  22. POD_LIB_LINT_ONLY: 1
  23. steps:
  24. - uses: actions/checkout@v2
  25. - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
  26. with:
  27. ruby-version: '2.7'
  28. - name: Setup Bundler
  29. run: scripts/setup_bundler.sh
  30. - name: Build and test
  31. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }}
  32. spm:
  33. # Don't run on private repo unless it is a PR.
  34. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  35. runs-on: macos-12
  36. strategy:
  37. matrix:
  38. target: [iOS, tvOS, macOS, catalyst, watchOS]
  39. steps:
  40. - uses: actions/checkout@v2
  41. - name: Initialize xcodebuild
  42. run: scripts/setup_spm_tests.sh
  43. - name: FirebaseCoreInternalTests
  44. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCoreInternalTests ${{ matrix.target }} spm
  45. catalyst:
  46. # Don't run on private repo unless it is a PR.
  47. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  48. runs-on: macos-12
  49. env:
  50. # This env var is set because the job has a dependency on the unpublished HeatbeatLoggingTestUtils.
  51. POD_LIB_LINT_ONLY: 1
  52. steps:
  53. - uses: actions/checkout@v2
  54. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  55. with:
  56. cache_key: ${{ matrix.os }}
  57. - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
  58. with:
  59. ruby-version: '2.7'
  60. - name: Setup Bundler
  61. run: scripts/setup_bundler.sh
  62. - name: Setup Catalyst project and run unit tests
  63. run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Unit
  64. - name: Setup Catalyst project and run integration tests
  65. run: scripts/test_catalyst.sh FirebaseCoreInternal test FirebaseCoreInternal-Unit-Integration
  66. core-internal-cron-only:
  67. # Don't run on private repo.
  68. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  69. runs-on: macos-12
  70. strategy:
  71. matrix:
  72. target: [ios, tvos, macos]
  73. flags: [
  74. '--use-static-frameworks'
  75. ]
  76. needs: pod-lib-lint
  77. steps:
  78. - uses: actions/checkout@v2
  79. - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
  80. with:
  81. ruby-version: '2.7'
  82. - name: Setup Bundler
  83. run: scripts/setup_bundler.sh
  84. - name: PodLibLint CoreInternal Cron
  85. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreInternal.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}