core_internal.yml 3.1 KB

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