datatransport.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. name: datatransport
  2. on:
  3. pull_request:
  4. paths:
  5. - 'GoogleDataTransport**'
  6. - '.github/workflows/datatransport.yml'
  7. - 'Gemfile'
  8. schedule:
  9. # Run every day at 11pm (PST) - cron uses UTC times
  10. - cron: '0 7 * * *'
  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-latest
  16. strategy:
  17. matrix:
  18. target: [ios, tvos, macos, watchos]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Setup Bundler
  22. run: ./scripts/setup_bundler.sh
  23. - name: PodLibLint DataTransport
  24. run: |
  25. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }}
  26. catalyst:
  27. # Don't run on private repo unless it is a PR.
  28. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  29. runs-on: macOS-latest
  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 GoogleDataTransport build
  36. watchos-testapp:
  37. # Don't run on private repo unless it is a PR.
  38. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  39. runs-on: macOS-latest
  40. steps:
  41. - uses: actions/checkout@v2
  42. - name: Xcode 12
  43. run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
  44. - name: Setup Bundler
  45. run: scripts/setup_bundler.sh
  46. - name: Prereqs
  47. run: scripts/install_prereqs.sh GoogleDataTransport watchOS xcodebuild
  48. - name: Setup project and build watchOS test app
  49. run: scripts/third_party/travis/retry.sh scripts/build.sh GoogleDataTransport watchOS xcodebuild
  50. # Scheduled jobs
  51. datatransport-cron-only:
  52. # Don't run on private repo.
  53. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  54. runs-on: macos-latest
  55. strategy:
  56. matrix:
  57. target: [ios, tvos, macos, watchos]
  58. flags: [
  59. '--use-static-frameworks',
  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 }}