datatransport.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. # Don't run on private repo unless it is a PR.
  15. if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
  16. runs-on: macos-latest
  17. strategy:
  18. matrix:
  19. target: [ios, tvos, macos, watchos]
  20. steps:
  21. - uses: actions/checkout@v2
  22. - name: Setup Bundler
  23. run: ./scripts/setup_bundler.sh
  24. - name: PodLibLint DataTransport
  25. run: |
  26. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }}
  27. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }}
  28. catalyst:
  29. # Don't run on private repo unless it is a PR.
  30. if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
  31. runs-on: macOS-latest
  32. strategy:
  33. matrix:
  34. pod: [GoogleDataTransport, GoogleDataTransportCCTSupport]
  35. steps:
  36. - uses: actions/checkout@v2
  37. - name: Setup Bundler
  38. run: scripts/setup_bundler.sh
  39. - name: Setup project and Test Catalyst
  40. # Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
  41. run: scripts/third_party/travis/retry.sh scripts/test_catalyst.sh ${{ matrix.pod }} build
  42. watchos-testapp:
  43. # Don't run on private repo unless it is a PR.
  44. if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
  45. runs-on: macOS-latest
  46. strategy:
  47. matrix:
  48. pod: [GoogleDataTransport, GoogleDataTransportCCTSupport]
  49. steps:
  50. - uses: actions/checkout@v2
  51. - name: Setup Bundler
  52. run: scripts/setup_bundler.sh
  53. - name: Prereqs
  54. run: scripts/install_prereqs.sh ${{ matrix.pod }} watchOS xcodebuild
  55. - name: Setup project and build watchOS test app
  56. run: scripts/third_party/travis/retry.sh scripts/build.sh ${{ matrix.pod }} watchOS xcodebuild
  57. # Scheduled jobs
  58. datatransport-cron-only:
  59. # Don't run on private repo.
  60. if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
  61. runs-on: macos-latest
  62. strategy:
  63. matrix:
  64. target: [ios, tvos, macos, watchos]
  65. flags: [
  66. '--use-modular-headers',
  67. '--use-libraries'
  68. ]
  69. needs: pod_lib_lint
  70. steps:
  71. - uses: actions/checkout@v2
  72. - name: Setup Bundler
  73. run: ./scripts/setup_bundler.sh
  74. - name: PodLibLint DataTransport Cron
  75. run: |
  76. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  77. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}