core_internal.yml 2.8 KB

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