core_extension.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: core_extension
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseCoreExtension.podspec'
  6. - 'FirebaseCore/Extension/**'
  7. - '.github/workflows/core_extension.yml'
  8. - 'Gemfile*'
  9. schedule:
  10. # Run every day at 2am (PST) - cron uses UTC times
  11. - cron: '0 10 * * *'
  12. jobs:
  13. # Since `FirebaseCoreExtension` only contains headers, linting is sufficient for testing.
  14. pod-lib-lint:
  15. # Don't run on private repo unless it is a PR.
  16. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  17. runs-on: macos-12
  18. strategy:
  19. matrix:
  20. target: [ios, tvos, macos]
  21. env:
  22. # This env var is set because the job has a dependency on the unpublished HeatbeatLoggingTestUtils.
  23. POD_LIB_LINT_ONLY: 1
  24. steps:
  25. - uses: actions/checkout@v3
  26. - uses: ruby/setup-ruby@v1
  27. - name: Setup Bundler
  28. run: scripts/setup_bundler.sh
  29. - name: Build and test
  30. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }}
  31. core-internal-cron-only:
  32. # Don't run on private repo.
  33. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  34. runs-on: macos-12
  35. strategy:
  36. matrix:
  37. target: [ios, tvos, macos]
  38. flags: [
  39. '--use-static-frameworks'
  40. ]
  41. needs: pod-lib-lint
  42. steps:
  43. - uses: actions/checkout@v3
  44. - uses: ruby/setup-ruby@v1
  45. - name: Setup Bundler
  46. run: scripts/setup_bundler.sh
  47. - name: PodLibLint CoreInternal Cron
  48. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}