datatransport.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: datatransport
  2. on:
  3. pull_request:
  4. paths:
  5. - 'GoogleDataTransport**'
  6. - 'GoogleDataTransportCCTSupport**'
  7. - '.github/workflows/datatransport.yml'
  8. schedule:
  9. # Run every day at 11pm (PST) - cron uses UTC times
  10. - cron: '0 7 * * *'
  11. jobs:
  12. pod_lib_lint:
  13. runs-on: macos-latest
  14. strategy:
  15. matrix:
  16. target: [ios, tvos, macos, watchos]
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Setup Bundler
  20. run: ./scripts/setup_bundler.sh
  21. - name: PodLibLint DataTransport
  22. run: |
  23. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }}
  24. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }}
  25. catalyst:
  26. runs-on: macOS-latest
  27. strategy:
  28. matrix:
  29. pod: [GoogleDataTransport, GoogleDataTransportCCTSupport]
  30. steps:
  31. - uses: actions/checkout@v2
  32. - name: Setup Bundler
  33. run: scripts/setup_bundler.sh
  34. - name: Setup project and Test Catalyst
  35. run: scripts/third_party/travis/retry.sh scripts/test_catalyst.sh ${{ matrix.pod }} test
  36. # Scheduled jobs
  37. datatransport-cron-only:
  38. runs-on: macos-latest
  39. if: github.event_name == 'schedule'
  40. strategy:
  41. matrix:
  42. target: [ios, tvos, macos, watchos]
  43. flags: [
  44. '--use-modular-headers',
  45. '--use-libraries'
  46. ]
  47. needs: pod_lib_lint
  48. steps:
  49. - uses: actions/checkout@v2
  50. - name: Setup Bundler
  51. run: ./scripts/setup_bundler.sh
  52. - name: PodLibLint DataTransport Cron
  53. run: |
  54. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  55. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}