performance.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Merge the yml file to master branch for the cron job schedule to be effective.
  2. # Reference: https://github.community/t/on-schedule-per-branch/17525
  3. name: performance
  4. on:
  5. pull_request:
  6. paths:
  7. # Performance sources
  8. - 'FirebasePerformance/**'
  9. # Podspec
  10. - 'FirebasePerformance.podspec'
  11. # YML configuration file
  12. - '.github/workflows/performance.yml'
  13. # Rebuild on Ruby infrastructure changes
  14. - 'Gemfile'
  15. schedule:
  16. # Run every day at 11pm (PST) - cron uses UTC times
  17. # Specified in format 'minutes hours day month dayofweek'
  18. - cron: '0 7 * * *'
  19. jobs:
  20. # Build and run the unit tests for Firebase performance SDK.
  21. performance:
  22. # Firebase Performance lives in private repository only currently.
  23. # Remove the check after Firebase Performance is open sourced.
  24. if: github.repository == 'FirebasePrivate/firebase-ios-sdk'
  25. runs-on: macos-latest
  26. steps:
  27. - uses: actions/checkout@v2
  28. with:
  29. ref: perf
  30. - name: Setup Bundler
  31. run: scripts/setup_bundler.sh
  32. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  33. run: scripts/third_party/travis/retry.sh scripts/build.sh Performance all xcodebuild
  34. # Podspec lint check for Firebase Performance
  35. pod-lib-lint:
  36. # Firebase Performance lives in private repository only currently.
  37. # Remove the check after Firebase Performance is open sourced.
  38. if: github.repository == 'FirebasePrivate/firebase-ios-sdk'
  39. runs-on: macOS-latest
  40. strategy:
  41. matrix:
  42. target: [ios]
  43. steps:
  44. - uses: actions/checkout@v2
  45. with:
  46. ref: perf
  47. - name: Setup Bundler
  48. run: scripts/setup_bundler.sh
  49. - name: Build
  50. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebasePerformance.podspec --skip-tests --platforms=${{ matrix.target }}