sessions-integration-tests.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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: sessions-integration-tests
  4. on:
  5. pull_request:
  6. paths:
  7. # This configuration file.
  8. - '.github/workflows/sessions-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. - cron: '0 */4 * * *'
  15. concurrency:
  16. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  17. cancel-in-progress: true
  18. jobs:
  19. # Public repository: Build and run the Integration Tests for the Firebase sessions E2E Test App across all environments.
  20. sessions-integration-tests:
  21. if: github.repository == 'Firebase/firebase-ios-sdk'
  22. env:
  23. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  24. runs-on: macos-12
  25. steps:
  26. - uses: actions/checkout@v3
  27. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  28. with:
  29. cache_key: ${{ matrix.os }}
  30. - uses: ruby/setup-ruby@v1
  31. - name: Setup Bundler
  32. run: scripts/setup_bundler.sh
  33. - name: Install xcpretty
  34. run: gem install xcpretty
  35. - name: Install Secret GoogleService-Info.plist
  36. run: |
  37. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Sessions/GoogleService-Info_TestApp.plist.gpg \
  38. FirebaseSessions/Tests/TestApp/Shared/GoogleService-Info.plist "$plist_secret"
  39. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  40. run: scripts/third_party/travis/retry.sh scripts/build.sh Sessions all integration