performance.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 3am (PST) - cron uses UTC times
  17. # This is set to 3 hours after zip workflow so zip testing can run after.
  18. # Specified in format 'minutes hours day month dayofweek'
  19. - cron: '0 11 * * *'
  20. jobs:
  21. # Build and run the unit tests for Firebase performance SDK.
  22. performance:
  23. # Firebase Performance lives in private repository only currently.
  24. # Remove the check after Firebase Performance is open sourced.
  25. if: github.repository == 'FirebasePrivate/firebase-ios-sdk'
  26. runs-on: macos-latest
  27. steps:
  28. - uses: actions/checkout@v2
  29. with:
  30. ref: perf
  31. - name: Setup Bundler
  32. run: scripts/setup_bundler.sh
  33. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  34. run: scripts/third_party/travis/retry.sh scripts/build.sh Performance all xcodebuild
  35. # Podspec lint check for Firebase Performance
  36. pod-lib-lint:
  37. # Firebase Performance lives in private repository only currently.
  38. # Remove the check after Firebase Performance is open sourced.
  39. if: github.repository == 'FirebasePrivate/firebase-ios-sdk'
  40. runs-on: macOS-latest
  41. strategy:
  42. matrix:
  43. target: [ios]
  44. steps:
  45. - uses: actions/checkout@v2
  46. with:
  47. ref: perf
  48. - name: Setup Bundler
  49. run: scripts/setup_bundler.sh
  50. - name: Build
  51. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebasePerformance.podspec --skip-tests --platforms=${{ matrix.target }}