google-utilities-components.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. concurrency:
  12. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  15. pod-lib-lint:
  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-11
  19. strategy:
  20. matrix:
  21. target: [ios, tvos, macos]
  22. steps:
  23. - uses: actions/checkout@v2
  24. - name: Setup Bundler
  25. run: scripts/setup_bundler.sh
  26. - name: Build and test
  27. run: |
  28. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleUtilitiesComponents.podspec \
  29. --platforms=${{ matrix.target }}
  30. catalyst:
  31. # Don't run on private repo unless it is a PR.
  32. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  33. runs-on: macos-11
  34. steps:
  35. - uses: actions/checkout@v2
  36. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  37. with:
  38. cache_key: ${{ matrix.os }}
  39. - name: Setup Bundler
  40. run: scripts/setup_bundler.sh
  41. - name: Setup project and Build for Catalyst
  42. run: scripts/test_catalyst.sh GoogleUtilitiesComponents test GoogleUtilitiesComponents-Unit-unit
  43. utilities-cron-only:
  44. # Don't run on private repo.
  45. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  46. runs-on: macos-11
  47. strategy:
  48. matrix:
  49. target: [ios, tvos, macos]
  50. flags: [
  51. '--use-static-frameworks'
  52. ]
  53. needs: pod-lib-lint
  54. steps:
  55. - uses: actions/checkout@v2
  56. - name: Setup Bundler
  57. run: scripts/setup_bundler.sh
  58. - name: PodLibLint GoogleUtilitiesComponents Cron
  59. run: |
  60. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
  61. GoogleUtilitiesComponents.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}