google-utilities-components.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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-11
  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-11
  31. steps:
  32. - uses: actions/checkout@v2
  33. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  34. with:
  35. cache_key: ${{ matrix.os }}
  36. - name: Setup Bundler
  37. run: scripts/setup_bundler.sh
  38. - name: Setup project and Build for Catalyst
  39. run: scripts/test_catalyst.sh GoogleUtilitiesComponents test GoogleUtilitiesComponents-Unit-unit
  40. utilities-cron-only:
  41. # Don't run on private repo.
  42. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  43. runs-on: macos-11
  44. strategy:
  45. matrix:
  46. target: [ios, tvos, macos]
  47. flags: [
  48. '--use-static-frameworks',
  49. '--use-libraries'
  50. ]
  51. needs: pod-lib-lint
  52. steps:
  53. - uses: actions/checkout@v2
  54. - name: Setup Bundler
  55. run: scripts/setup_bundler.sh
  56. - name: PodLibLint GoogleUtilitiesComponents Cron
  57. run: |
  58. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
  59. GoogleUtilitiesComponents.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  60. podspec-presubmit:
  61. # Don't run on private repo unless it is a PR.
  62. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
  63. runs-on: macos-11
  64. steps:
  65. - uses: actions/checkout@v2
  66. - name: Setup Bundler
  67. run: scripts/setup_bundler.sh
  68. - name: Build and test
  69. run: scripts/third_party/travis/retry.sh pod spec lint GoogleUtilitiesComponents.podspec --skip-tests --sources='https://github.com/firebase/SpecsTesting','https://github.com/firebase/SpecsDev.git','https://github.com/firebase/SpecsStaging.git','https://cdn.cocoapods.org/'