sessions-integration-tests.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. pull_request:
  6. paths:
  7. # This configuration file.
  8. - '.github/workflows/sessions-integration-tests.yml'
  9. - 'FirebaseSessions/Tests/TestApp'
  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 every 4 hours.
  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 sessions E2E Test App across all environments.
  21. sessions-integration-tests:
  22. if: github.repository == 'Firebase/firebase-ios-sdk'
  23. env:
  24. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  25. #TODO(#12771): Fix macos-14 build issues
  26. runs-on: macos-12
  27. steps:
  28. - uses: actions/checkout@v4
  29. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  30. with:
  31. cache_key: sessions-integration-tests
  32. - uses: ruby/setup-ruby@v1
  33. - name: Setup Bundler
  34. run: scripts/setup_bundler.sh
  35. - name: Install xcpretty
  36. run: gem install xcpretty
  37. - name: Install Secret GoogleService-Info.plist
  38. run: |
  39. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Sessions/GoogleService-Info_TestApp.plist.gpg \
  40. FirebaseSessions/Tests/TestApp/Shared/GoogleService-Info.plist "$plist_secret"
  41. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  42. run: scripts/third_party/travis/retry.sh scripts/build.sh Sessions all integration