core_internal.yml 3.0 KB

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