analytics.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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
  31. podspec-presubmit:
  32. # Don't run on private repo unless it is a PR.
  33. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
  34. runs-on: macos-11
  35. steps:
  36. - uses: actions/checkout@v2
  37. - name: Setup Bundler
  38. run: scripts/setup_bundler.sh
  39. - name: Build and test
  40. run: scripts/third_party/travis/retry.sh pod spec lint FirebaseAnalyticsSwift.podspec --skip-tests --sources='https://github.com/firebase/SpecsTesting','https://github.com/firebase/SpecsDev.git','https://github.com/firebase/SpecsStaging.git','https://cdn.cocoapods.org/'