performance-integration-tests.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  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. # See cron syntax references:
  6. # - https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule
  7. # - https://crontab.guru/
  8. schedule:
  9. # Runs every 4 hours.
  10. # TODO: Validate when the timer starts after job is triggered.
  11. - cron: '0 */4 * * *'
  12. jobs:
  13. # Public repository: Build and run the Integration Tests for the Firebase performance E2E Test App.
  14. performance-integration-tests:
  15. if: github.repository == 'Firebase/firebase-ios-sdk'
  16. env:
  17. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  18. runs-on: macos-11
  19. steps:
  20. - uses: actions/checkout@v2
  21. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  22. with:
  23. cache_key: ${{ matrix.os }}
  24. - name: Setup Bundler
  25. run: scripts/setup_bundler.sh
  26. - name: Install Secret GoogleService-Info.plist
  27. run: |
  28. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Performance/GoogleService-Info_e2e_autopush.plist.gpg \
  29. FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EAutopush/GoogleService-Info.plist "$plist_secret"
  30. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Performance/GoogleService-Info_e2e_prod.plist.gpg \
  31. FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EProd/GoogleService-Info.plist "$plist_secret"
  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 integration