analytics.yml 1.2 KB

12345678910111213141516171819202122232425262728293031
  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-latest
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: Setup Bundler
  21. run: scripts/setup_bundler.sh
  22. - name: GoogleAppMeasurement
  23. run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec.json --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
  24. - name: FirebaseAnalyticsSwift
  25. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAnalyticsSwift.podspec --platforms=ios
  26. # TODO: Consider pushing GoogleAppMeasurement.podspec.json to SpecsDev to enable similar test
  27. # for FirebaseAnalytics.podspec.json