google-utilities-components.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: google-utilities-components
  2. on:
  3. pull_request:
  4. paths:
  5. - 'GoogleUtilitiesComponents**'
  6. - '.github/workflows/google-utilities-components.yml'
  7. - 'Gemfile'
  8. schedule:
  9. # Run every day at 10pm (PST) - cron uses UTC times
  10. - cron: '0 6 * * *'
  11. jobs:
  12. pod-lib-lint:
  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. target: [ios, tvos, macos]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Setup Bundler
  22. run: scripts/setup_bundler.sh
  23. - name: Build and test
  24. run: |
  25. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleUtilitiesComponents.podspec \
  26. --platforms=${{ matrix.target }}
  27. catalyst:
  28. # Don't run on private repo unless it is a PR.
  29. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  30. runs-on: macOS-latest
  31. steps:
  32. - uses: actions/checkout@v2
  33. - name: Setup Bundler
  34. run: scripts/setup_bundler.sh
  35. - name: Setup project and Build for Catalyst
  36. run: scripts/test_catalyst.sh GoogleUtilitiesComponents test GoogleUtilitiesComponents-Unit-unit
  37. utilities-cron-only:
  38. # Don't run on private repo.
  39. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  40. runs-on: macos-latest
  41. strategy:
  42. matrix:
  43. target: [ios, tvos, macos]
  44. flags: [
  45. '--use-static-frameworks',
  46. '--use-libraries'
  47. ]
  48. needs: pod-lib-lint
  49. steps:
  50. - uses: actions/checkout@v2
  51. - name: Setup Bundler
  52. run: scripts/setup_bundler.sh
  53. - name: PodLibLint GoogleUtilitiesComponents Cron
  54. run: |
  55. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
  56. GoogleUtilitiesComponents.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}