analytics.yml 1022 B

123456789101112131415161718192021222324252627282930
  1. name: analytics
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseAnalytics.podspec.json'
  6. - 'FirebaseAnalyticsSwift**'
  7. - 'GoogleAppMeasurement.podspec.json'
  8. - 'Gemfile'
  9. schedule:
  10. # Run every day at 7pm (PST) - cron uses UTC times
  11. - cron: '0 3 * * *'
  12. jobs:
  13. pod-lib-lint:
  14. # Don't run on private repo unless it is a PR.
  15. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  16. runs-on: macOS-latest
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Setup Bundler
  20. run: scripts/setup_bundler.sh
  21. - name: GoogleAppMeasurement
  22. run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec.json
  23. - name: FirebaseAnalyticsSwift
  24. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAnalyticsSwift.podspec --platforms=ios
  25. # TODO: Consider pushing GoogleAppMeasurement.podspec.json to SpecsDev to enable similar test
  26. # for FirebaseAnalytics.podspec.json