segmentation.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. name: segmentation
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebasesSegmentation**'
  6. - '.github/workflows/segmentation.yml'
  7. - 'Gemfile'
  8. schedule:
  9. # Run every day at 12am (PST) - cron uses UTC times
  10. - cron: '0 8 * * *'
  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]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Setup Bundler
  22. run: scripts/setup_bundler.sh
  23. - name: Build and test
  24. run: |
  25. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.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 Build for Catalyst
  35. run: scripts/test_catalyst.sh FirebaseSegmentation test FirebaseSegmentation-Unit-unit
  36. segmentation-cron-only:
  37. # Don't run on private repo.
  38. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  39. runs-on: macos-latest
  40. strategy:
  41. matrix:
  42. target: [ios, tvos, macos]
  43. flags: [
  44. '--use-static-frameworks',
  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 Auth Cron
  53. run: |
  54. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  55. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  56. segmentation-sample-build-test:
  57. # Don't run on private repo unless it is a PR.
  58. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  59. runs-on: macos-latest
  60. steps:
  61. - uses: actions/checkout@v2
  62. - name: Setup Bundler
  63. run: scripts/setup_bundler.sh
  64. - name: Install Secret GoogleService-Info.plist
  65. # Just copy a dummy plist for a build-only test
  66. run: cp FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist FirebaseSegmentation/Tests/Sample/
  67. - name: Prereqs
  68. run: scripts/install_prereqs.sh SegmentationSample iOS
  69. - name: Build
  70. run: scripts/build.sh SegmentationSample iOS