core_extension.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. strategy:
  18. matrix:
  19. target: [ios, tvos, macos, watchos]
  20. os: [macos-14, macos-13]
  21. include:
  22. - os: macos-14
  23. xcode: Xcode_15.3
  24. - os: macos-13
  25. xcode: Xcode_15.2
  26. runs-on: ${{ matrix.os }}
  27. steps:
  28. - uses: actions/checkout@v4
  29. - uses: ruby/setup-ruby@v1
  30. - name: Setup Bundler
  31. run: scripts/setup_bundler.sh
  32. - name: Xcode
  33. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  34. - name: Build and test
  35. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }}
  36. core-internal-cron-only:
  37. # Don't run on private repo.
  38. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  39. runs-on: macos-14
  40. strategy:
  41. matrix:
  42. target: [ios, tvos, macos]
  43. flags: [
  44. '--use-static-frameworks'
  45. ]
  46. needs: pod-lib-lint
  47. steps:
  48. - uses: actions/checkout@v4
  49. - uses: ruby/setup-ruby@v1
  50. - name: Setup Bundler
  51. run: scripts/setup_bundler.sh
  52. - name: PodLibLint CoreInternal Cron
  53. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreExtension.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}