performance-integration-tests.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Merge the yml file to main branch for the cron job schedule to be effective.
  2. # Reference: https://github.community/t/on-schedule-per-branch/17525
  3. name: performance-integration-tests
  4. on:
  5. workflow_dispatch:
  6. pull_request:
  7. paths:
  8. # This configuration file.
  9. - '.github/workflows/performance-integration-tests.yml'
  10. # See cron syntax references:
  11. # - https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule
  12. # - https://crontab.guru/
  13. schedule:
  14. # Runs once a day.
  15. - cron: '0 0 * * *'
  16. concurrency:
  17. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  18. cancel-in-progress: true
  19. jobs:
  20. # Public repository: Build and run the Integration Tests for the Firebase performance E2E Test App.
  21. performance-integration-tests:
  22. if: github.repository == 'Firebase/firebase-ios-sdk'
  23. env:
  24. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  25. runs-on: macos-15
  26. steps:
  27. - uses: actions/checkout@v4
  28. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  29. with:
  30. cache_key: integration
  31. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  32. - name: Xcode
  33. run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  34. - name: Setup Bundler
  35. run: scripts/setup_bundler.sh
  36. - name: Install xcpretty
  37. run: gem install xcpretty
  38. - name: Install Secret GoogleService-Info.plist
  39. run: |
  40. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Performance/GoogleService-Info_e2e_autopush.plist.gpg \
  41. FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EAutopush/GoogleService-Info.plist "$plist_secret"
  42. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Performance/GoogleService-Info_e2e_prod.plist.gpg \
  43. FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EProd/GoogleService-Info.plist "$plist_secret"
  44. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  45. run: scripts/third_party/travis/retry.sh scripts/build.sh Performance all integration