cocoapods-integration.yml 1.2 KB

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