analytics.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. 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. runs-on: macos-11
  21. strategy:
  22. matrix:
  23. target: [ios, tvos, macos]
  24. steps:
  25. - uses: actions/checkout@v2
  26. - name: Setup Bundler
  27. run: scripts/setup_bundler.sh
  28. - name: GoogleAppMeasurement
  29. 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/
  30. - name: FirebaseAnalyticsSwift
  31. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAnalyticsSwift.podspec --platforms=${{ matrix.target }}
  32. # TODO: Consider pushing GoogleAppMeasurement.podspec.json to SpecsDev to enable similar test
  33. # for FirebaseAnalytics.podspec.json