analytics.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: analytics
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. - 'FirebaseAnalytics**'
  7. - 'GoogleAppMeasurement**'
  8. - '.github/workflows/analytics.yml'
  9. - 'Gemfile*'
  10. schedule:
  11. # Run every day at 1am (PST) - cron uses UTC times
  12. - cron: '0 9 * * *'
  13. concurrency:
  14. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  15. cancel-in-progress: true
  16. jobs:
  17. pod-lib-lint:
  18. # Don't run on private repo unless it is a PR.
  19. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  20. strategy:
  21. matrix:
  22. target: [ios, tvos, macos]
  23. <<<<<<< HEAD
  24. os: [macos-15]
  25. include:
  26. - os: macos-15
  27. xcode: Xcode_16.2
  28. =======
  29. os: [macos-14, macos-15]
  30. include:
  31. - os: macos-14
  32. xcode: Xcode_16.2
  33. - os: macos-15
  34. xcode: Xcode_16.3
  35. >>>>>>> swift-6
  36. runs-on: ${{ matrix.os }}
  37. steps:
  38. - uses: actions/checkout@v4
  39. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  40. - name: Setup Bundler
  41. run: scripts/setup_bundler.sh
  42. - name: Xcode
  43. run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
  44. - name: GoogleAppMeasurement
  45. run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec --platforms=${{ matrix.target }} --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
  46. - name: FirebaseAnalytics
  47. run: scripts/third_party/travis/retry.sh pod spec lint FirebaseAnalytics.podspec --platforms=${{ matrix.target }} --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
  48. # The following steps are only run on `ios` due to product availability.
  49. - name: GoogleAppMeasurementOnDeviceConversion
  50. run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurementOnDeviceConversion.podspec --platforms=ios --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
  51. - name: FirebaseAnalyticsOnDeviceConversion
  52. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAnalyticsOnDeviceConversion.podspec --platforms=ios
  53. # TODO: Consider pushing GoogleAppMeasurement.podspec to SpecsDev to enable similar test
  54. # for FirebaseAnalytics.podspec