performance-integration-tests.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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-integration-tests
  4. on:
  5. pull_request:
  6. paths:
  7. # This configuration file.
  8. - '.github/workflows/performance-integration-tests.yml'
  9. # See cron syntax references:
  10. # - https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule
  11. # - https://crontab.guru/
  12. schedule:
  13. # Runs every 4 hours.
  14. # TODO: Validate when the timer starts after job is triggered.
  15. - cron: '0 */4 * * *'
  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-12
  26. steps:
  27. - uses: actions/checkout@v3
  28. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  29. with:
  30. cache_key: ${{ matrix.os }}
  31. - uses: ruby/setup-ruby@v1
  32. - name: Setup Bundler
  33. run: scripts/setup_bundler.sh
  34. - name: Install xcpretty
  35. run: gem install xcpretty
  36. - name: Install Secret GoogleService-Info.plist
  37. run: |
  38. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Performance/GoogleService-Info_e2e_autopush.plist.gpg \
  39. FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EAutopush/GoogleService-Info.plist "$plist_secret"
  40. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Performance/GoogleService-Info_e2e_prod.plist.gpg \
  41. FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EProd/GoogleService-Info.plist "$plist_secret"
  42. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  43. run: scripts/third_party/travis/retry.sh scripts/build.sh Performance all integration