datatransport.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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]
  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. # Scheduled jobs
  26. datatransport-cron-only:
  27. runs-on: macos-latest
  28. if: github.event_name == 'schedule'
  29. strategy:
  30. matrix:
  31. target: [ios, tvos, macos]
  32. flags: [
  33. '--use-modular-headers',
  34. '--use-libraries'
  35. ]
  36. needs: pod_lib_lint
  37. steps:
  38. - uses: actions/checkout@v2
  39. - name: Setup Bundler
  40. run: ./scripts/setup_bundler.sh
  41. - name: PodLibLint DataTransport Cron
  42. run: |
  43. ./scripts/third_party/travis/retry.sh ./scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  44. ./scripts/third_party/travis/retry.sh ./scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}