datatransport.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. name: datatransport
  2. on:
  3. pull_request:
  4. paths:
  5. - 'GoogleDataTransport**'
  6. - 'GoogleDataTransportCCTSupport**'
  7. - '.github/workflows/datatransport.yml'
  8. - 'Gemfile'
  9. schedule:
  10. # Run every day at 11pm (PST) - cron uses UTC times
  11. - cron: '0 7 * * *'
  12. jobs:
  13. pod_lib_lint:
  14. runs-on: macos-latest
  15. strategy:
  16. matrix:
  17. target: [ios, tvos, macos, watchos]
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: Setup Bundler
  21. run: ./scripts/setup_bundler.sh
  22. - name: PodLibLint DataTransport
  23. run: |
  24. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }}
  25. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }}
  26. catalyst:
  27. runs-on: macOS-latest
  28. strategy:
  29. matrix:
  30. pod: [GoogleDataTransport, GoogleDataTransportCCTSupport]
  31. steps:
  32. - uses: actions/checkout@v2
  33. - name: Setup Bundler
  34. run: scripts/setup_bundler.sh
  35. - name: Setup project and Test Catalyst
  36. # Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
  37. run: scripts/third_party/travis/retry.sh scripts/test_catalyst.sh ${{ matrix.pod }} build
  38. watchos-testapp:
  39. runs-on: macOS-latest
  40. strategy:
  41. matrix:
  42. pod: [GoogleDataTransport, GoogleDataTransportCCTSupport]
  43. steps:
  44. - uses: actions/checkout@v2
  45. - name: Setup Bundler
  46. run: scripts/setup_bundler.sh
  47. - name: Prereqs
  48. run: scripts/install_prereqs.sh ${{ matrix.pod }} watchOS xcodebuild
  49. - name: Setup project and build watchOS test app
  50. run: scripts/third_party/travis/retry.sh scripts/build.sh ${{ matrix.pod }} watchOS xcodebuild
  51. # Scheduled jobs
  52. datatransport-cron-only:
  53. runs-on: macos-latest
  54. if: github.event_name == 'schedule'
  55. strategy:
  56. matrix:
  57. target: [ios, tvos, macos, watchos]
  58. flags: [
  59. '--use-modular-headers',
  60. '--use-libraries'
  61. ]
  62. needs: pod_lib_lint
  63. steps:
  64. - uses: actions/checkout@v2
  65. - name: Setup Bundler
  66. run: ./scripts/setup_bundler.sh
  67. - name: PodLibLint DataTransport Cron
  68. run: |
  69. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  70. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}