|
| 1 | +name: segmentation |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - 'FirebasesSegmentation**' |
| 7 | + - '.github/workflows/segmentation.yml' |
| 8 | + - 'Gemfile' |
| 9 | + schedule: |
| 10 | + # Run every day at 11pm (PST) - cron uses UTC times |
| 11 | + - cron: '0 7 * * *' |
| 12 | + |
| 13 | +jobs: |
| 14 | + pod-lib-lint: |
| 15 | + # Don't run on private repo unless it is a PR. |
| 16 | + if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' |
| 17 | + |
| 18 | + runs-on: macOS-latest |
| 19 | + |
| 20 | + strategy: |
| 21 | + matrix: |
| 22 | + target: [ios, tvos, macos] |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@v2 |
| 25 | + - name: Setup Bundler |
| 26 | + run: scripts/setup_bundler.sh |
| 27 | + - name: Build and test |
| 28 | + run: | |
| 29 | + scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }} |
| 30 | +
|
| 31 | + catalyst: |
| 32 | + # Don't run on private repo unless it is a PR. |
| 33 | + if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' |
| 34 | + |
| 35 | + runs-on: macOS-latest |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v2 |
| 38 | + - name: Setup Bundler |
| 39 | + run: scripts/setup_bundler.sh |
| 40 | + - name: Setup project and Build for Catalyst |
| 41 | + run: scripts/test_catalyst.sh FirebaseSegmentation build FirebaseSegmentation-Unit-unit |
| 42 | + |
| 43 | + segmentation-cron-only: |
| 44 | + # Don't run on private repo. |
| 45 | + if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk' |
| 46 | + |
| 47 | + runs-on: macos-latest |
| 48 | + strategy: |
| 49 | + matrix: |
| 50 | + target: [ios, tvos, macos] |
| 51 | + flags: [ |
| 52 | + '--use-static-frameworks', |
| 53 | + '--use-libraries' |
| 54 | + ] |
| 55 | + needs: pod-lib-lint |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v2 |
| 58 | + - name: Setup Bundler |
| 59 | + run: scripts/setup_bundler.sh |
| 60 | + - name: PodLibLint Auth Cron |
| 61 | + run: | |
| 62 | + scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }} |
| 63 | + scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSegmentation.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }} |
0 commit comments