core_extension.yml 1.7 KB

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