segmentation.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. name: segmentation
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseSegmentation**'
  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-11
  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-11
  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-11
  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: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  54. segmentation-sample-build-test:
  55. # Don't run on private repo unless it is a PR.
  56. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  57. runs-on: macos-11
  58. steps:
  59. - uses: actions/checkout@v2
  60. - name: Setup Bundler
  61. run: scripts/setup_bundler.sh
  62. - name: Install Secret GoogleService-Info.plist
  63. # Just copy a dummy plist for a build-only test
  64. run: cp FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist FirebaseSegmentation/Tests/Sample/
  65. - name: Prereqs
  66. run: scripts/install_prereqs.sh SegmentationSample iOS
  67. - name: Build
  68. run: scripts/build.sh SegmentationSample iOS