| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- name: datatransport
- on:
- pull_request:
- paths:
- - 'GoogleDataTransport**'
- - 'GoogleDataTransportCCTSupport**'
- - '.github/workflows/datatransport.yml'
- - 'Gemfile'
- schedule:
- # Run every day at 11pm (PST) - cron uses UTC times
- - cron: '0 7 * * *'
- jobs:
- pod_lib_lint:
- runs-on: macos-latest
- strategy:
- matrix:
- target: [ios, tvos, macos, watchos]
- steps:
- - uses: actions/checkout@v2
- - name: Setup Bundler
- run: ./scripts/setup_bundler.sh
- - name: PodLibLint DataTransport
- run: |
- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }}
- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }}
- catalyst:
- runs-on: macOS-latest
- strategy:
- matrix:
- pod: [GoogleDataTransport, GoogleDataTransportCCTSupport]
- steps:
- - uses: actions/checkout@v2
- - name: Setup Bundler
- run: scripts/setup_bundler.sh
- - name: Setup project and Test Catalyst
- # Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
- run: scripts/third_party/travis/retry.sh scripts/test_catalyst.sh ${{ matrix.pod }} build
- watchos-testapp:
- runs-on: macOS-latest
- strategy:
- matrix:
- pod: [GoogleDataTransport, GoogleDataTransportCCTSupport]
- steps:
- - uses: actions/checkout@v2
- - name: Setup Bundler
- run: scripts/setup_bundler.sh
- - name: Prereqs
- run: scripts/install_prereqs.sh ${{ matrix.pod }} watchOS xcodebuild
- - name: Setup project and build watchOS test app
- run: scripts/third_party/travis/retry.sh scripts/build.sh ${{ matrix.pod }} watchOS xcodebuild
- # Scheduled jobs
- datatransport-cron-only:
- runs-on: macos-latest
- if: github.event_name == 'schedule'
- strategy:
- matrix:
- target: [ios, tvos, macos, watchos]
- flags: [
- '--use-modular-headers',
- '--use-libraries'
- ]
- needs: pod_lib_lint
- steps:
- - uses: actions/checkout@v2
- - name: Setup Bundler
- run: ./scripts/setup_bundler.sh
- - name: PodLibLint DataTransport Cron
- run: |
- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb GoogleDataTransportCCTSupport.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
|