cocoapods-integration.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: cocoapods-integration
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. - 'IntegrationTesting/CocoapodsIntegrationTest/**'
  7. - '.github/workflows/cocoapods-integration.yml'
  8. - 'Gemfile*'
  9. schedule:
  10. # Run every day at 3am (PDT) / 6am (EDT) - cron uses UTC times
  11. - cron: '0 10 * * *'
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  14. cancel-in-progress: true
  15. jobs:
  16. tests:
  17. # Don't run on private repo unless it is a PR.
  18. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
  19. runs-on: macos-15
  20. steps:
  21. - uses: actions/checkout@v4
  22. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  23. with:
  24. cache_key: ${{ matrix.os }}
  25. - name: Xcode
  26. run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  27. - name: Get realpath
  28. run: brew install coreutils
  29. - name: Build and test
  30. run: |
  31. scripts/third_party/travis/retry.sh ./IntegrationTesting/CocoapodsIntegrationTest/scripts/build_with_environment.sh \
  32. --gemfile=./IntegrationTesting/CocoapodsIntegrationTest/TestEnvironments/Cocoapods_multiprojects_frameworks/Gemfile \
  33. --podfile=./IntegrationTesting/CocoapodsIntegrationTest/TestEnvironments/Cocoapods_multiprojects_frameworks/Podfile