google-utilities-components.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. - 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-11
  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 }}
  57. podspec-presubmit:
  58. # Don't run on private repo unless it is a PR.
  59. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
  60. runs-on: macos-11
  61. steps:
  62. - uses: actions/checkout@v2
  63. - name: Setup Bundler
  64. run: scripts/setup_bundler.sh
  65. - name: Build and test
  66. 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/'