cocoapods-integration.yml 1.0 KB

123456789101112131415161718192021222324252627282930
  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 7pm (PST) - cron uses UTC times
  10. - cron: '0 3 * * *'
  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-latest
  16. strategy:
  17. matrix:
  18. config: [Cocoapods_multiprojects_frameworks, Cocoapods_multiprojects_staticLibs]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Get realpath
  22. run: brew install coreutils
  23. - name: Build and test
  24. run: |
  25. scripts/third_party/travis/retry.sh ./CocoapodsIntegrationTest/scripts/build_with_environment.sh \
  26. --gemfile=./CocoapodsIntegrationTest/TestEnvironments/${{ matrix.config }}/Gemfile \
  27. --podfile=./CocoapodsIntegrationTest/TestEnvironments/${{ matrix.config }}/Podfile