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-11
  18. strategy:
  19. matrix:
  20. target: [ios, tvos, macos]
  21. env:
  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 FirebaseCoreExtension.podspec --platforms=${{ matrix.target }}
  29. core-internal-cron-only:
  30. # Don't run on private repo.
  31. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  32. runs-on: macos-11
  33. strategy:
  34. matrix:
  35. target: [ios, tvos, macos]
  36. flags: [
  37. '--use-static-frameworks'
  38. ]
  39. needs: pod-lib-lint
  40. steps:
  41. - uses: actions/checkout@v2
  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 }}