analytics.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: analytics
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseAnalytics.podspec.json'
  6. - 'FirebaseAnalyticsSwift**'
  7. - 'GoogleAppMeasurement.podspec.json'
  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. jobs:
  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. steps:
  22. - uses: actions/checkout@v2
  23. - name: Setup Bundler
  24. run: scripts/setup_bundler.sh
  25. - name: GoogleAppMeasurement
  26. run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec.json --platforms=${{ matrix.target }} --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
  27. - name: FirebaseAnalyticsSwift
  28. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAnalyticsSwift.podspec --platforms=${{ matrix.target }}
  29. # TODO: Consider pushing GoogleAppMeasurement.podspec.json to SpecsDev to enable similar test
  30. # for FirebaseAnalytics.podspec.json