core_extension.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. steps:
  22. - uses: actions/checkout@v3
  23. - uses: ruby/setup-ruby@v1
  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 FirebaseCoreExtension.podspec --platforms=${{ matrix.target }}
  28. core-internal-cron-only:
  29. # Don't run on private repo.
  30. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  31. runs-on: macos-12
  32. strategy:
  33. matrix:
  34. target: [ios, tvos, macos]
  35. flags: [
  36. '--use-static-frameworks'
  37. ]
  38. needs: pod-lib-lint
  39. steps:
  40. - uses: actions/checkout@v3
  41. - uses: ruby/setup-ruby@v1
  42. - name: Setup Bundler
  43. run: scripts/setup_bundler.sh
  44. - name: PodLibLint CoreInternal Cron
  45. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}