performance.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. # Don't run on private repo unless it is a PR.
  23. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  24. runs-on: macos-latest
  25. steps:
  26. - uses: actions/checkout@v2
  27. - name: Setup Bundler
  28. run: scripts/setup_bundler.sh
  29. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  30. run: scripts/third_party/travis/retry.sh scripts/build.sh Performance all xcodebuild
  31. # Podspec lint check for Firebase Performance
  32. pod-lib-lint:
  33. # Don't run on private repo unless it is a PR.
  34. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  35. runs-on: macOS-latest
  36. strategy:
  37. matrix:
  38. target: [ios]
  39. steps:
  40. - uses: actions/checkout@v2
  41. - name: Setup Bundler
  42. run: scripts/setup_bundler.sh
  43. - name: Build
  44. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebasePerformance.podspec --skip-tests --platforms=${{ matrix.target }}
  45. quickstart:
  46. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  47. env:
  48. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  49. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  50. runs-on: macOS-latest
  51. steps:
  52. - uses: actions/checkout@v2
  53. - name: Setup quickstart
  54. run: scripts/setup_quickstart.sh performance
  55. - name: Install Secret GoogleService-Info.plist
  56. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
  57. quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
  58. - name: Install Secret FIREGSignInInfo.h
  59. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  60. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  61. - name: Test swift quickstart
  62. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance)
  63. - name: Test objc quickstart
  64. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance)
  65. catalyst:
  66. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  67. runs-on: macOS-latest
  68. steps:
  69. - uses: actions/checkout@v2
  70. - name: Setup Bundler
  71. run: scripts/setup_bundler.sh
  72. - name: Setup project and Build Catalyst
  73. run: scripts/test_catalyst.sh FirebasePerformance build