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