cocoapods-integration.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. jobs:
  12. tests:
  13. # Don't run on private repo unless it is a PR.
  14. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  15. runs-on: macos-11
  16. strategy:
  17. matrix:
  18. config: [Cocoapods_multiprojects_frameworks, Cocoapods_multiprojects_staticLibs]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  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/${{ matrix.config }}/Gemfile \
  30. --podfile=./CocoapodsIntegrationTest/TestEnvironments/${{ matrix.config }}/Podfile