core_internal.yml 2.8 KB

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