|
| 1 | +name: core-diagnostics |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - 'Firebase/CoreDiagnostics/**' |
| 7 | + - 'Example/CoreDiagnostics/**' |
| 8 | + - 'Interop/CoreDiagnostics/Public/*.h' |
| 9 | + - '.github/workflows/core-diagnostics.yml' |
| 10 | + - 'Gemfile' |
| 11 | + schedule: |
| 12 | + # Run every day at 11pm (PST) - cron uses UTC times |
| 13 | + - cron: '0 7 * * *' |
| 14 | + |
| 15 | +jobs: |
| 16 | + pod-lib-lint: |
| 17 | + # Don't run on private repo unless it is a PR. |
| 18 | + if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' |
| 19 | + |
| 20 | + runs-on: macOS-latest |
| 21 | + |
| 22 | + strategy: |
| 23 | + matrix: |
| 24 | + target: [ios, tvos, macos] |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v2 |
| 27 | + - name: Setup Bundler |
| 28 | + run: scripts/setup_bundler.sh |
| 29 | + - name: Build and test |
| 30 | + run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreDiagnostics.podspec --platforms=${{ matrix.target }} |
| 31 | + |
| 32 | + spm: |
| 33 | + # Don't run on private repo unless it is a PR. |
| 34 | + if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' |
| 35 | + runs-on: macOS-latest |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v2 |
| 38 | + - name: Xcode 12 |
| 39 | + run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer |
| 40 | + - name: Initialize xcodebuild |
| 41 | + run: xcodebuild -list |
| 42 | + - name: iOS Unit Tests |
| 43 | + run: scripts/third_party/travis/retry.sh ./scripts/build.sh CoreUnit iOS spm |
| 44 | + |
| 45 | + catalyst: |
| 46 | + # Don't run on private repo unless it is a PR. |
| 47 | + if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' |
| 48 | + |
| 49 | + runs-on: macOS-latest |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@v2 |
| 52 | + - name: Setup Bundler |
| 53 | + run: scripts/setup_bundler.sh |
| 54 | + - name: Setup project and Build Catalyst |
| 55 | + run: scripts/test_catalyst.sh FirebaseCoreDiagnostics build |
| 56 | + |
| 57 | + corediagnostics-cron-only: |
| 58 | + # Don't run on private repo. |
| 59 | + if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk' |
| 60 | + |
| 61 | + runs-on: macos-latest |
| 62 | + strategy: |
| 63 | + matrix: |
| 64 | + target: [ios, tvos, macos] |
| 65 | + flags: [ |
| 66 | + '--use-static-frameworks', |
| 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 CoreDiagnostics Cron |
| 75 | + run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreDiagnostics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }} |
0 commit comments