Test Android Devices [cpu1] #206
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Android Devices [cpu1] | |
| on: | |
| # Run at 10 PM UTC every 2 days | |
| schedule: | |
| - cron: '0 22 */2 * *' | |
| # Allow manual triggering | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: "Environment to run tests against" | |
| type: choice | |
| options: | |
| - prod | |
| - dev | |
| default: "prod" | |
| required: true | |
| use-beta: | |
| description: "Use beta version" | |
| type: boolean | |
| default: false | |
| required: false | |
| jobs: | |
| test-android-devices: | |
| name: ${{ matrix.device }} - API ${{ matrix.api-level }}${{ matrix.google-play && ' Play' || '' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| # Don't cancel all jobs if one fails | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Pixel 6 supports API 29-36 | |
| - device: pixel-6 | |
| api-level: "29" | |
| - device: pixel-6 | |
| api-level: "30" | |
| - device: pixel-6 | |
| api-level: "31" | |
| - device: pixel-6 | |
| api-level: "32" | |
| - device: pixel-6 | |
| api-level: "33" | |
| - device: pixel-6 | |
| api-level: "34" | |
| - device: pixel-6 | |
| api-level: "35" | |
| - device: pixel-6 | |
| api-level: "36" | |
| # Pixel 6 Pro supports API 33, 35 | |
| - device: pixel-6-pro | |
| api-level: "33" | |
| - device: pixel-6-pro | |
| api-level: "35" | |
| # Pixel 7 supports API 33-36 | |
| - device: pixel-7 | |
| api-level: "33" | |
| - device: pixel-7 | |
| api-level: "34" | |
| - device: pixel-7 | |
| api-level: "35" | |
| - device: pixel-7 | |
| api-level: "36" | |
| # Google Play: only pixel-7 / API 34 is supported | |
| - device: pixel-7 | |
| api-level: "34" | |
| google-play: true | |
| # Pixel 7 Pro supports API 33-36 | |
| - device: pixel-7-pro | |
| api-level: "33" | |
| - device: pixel-7-pro | |
| api-level: "34" | |
| - device: pixel-7-pro | |
| api-level: "35" | |
| - device: pixel-7-pro | |
| api-level: "36" | |
| # Generic Tablet supports API 33 only | |
| - device: generic-tablet | |
| api-level: "33" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run Android Device Tests | |
| uses: devicecloud-dev/device-cloud-for-maestro@v2 | |
| with: | |
| api-key: ${{ github.event.inputs.environment == 'dev' && secrets.DCD_DEV_API_KEY || secrets.DCD_API_KEY }} | |
| api-url: ${{ github.event.inputs.environment == 'dev' && 'https://api.dev.devicecloud.dev' || '' }} | |
| app-file: ./binaries/sample.apk | |
| workspace: ./flows/android-flow.yaml | |
| android-device: ${{ matrix.device }} | |
| android-api-level: ${{ matrix.api-level }} | |
| google-play: ${{ matrix.google-play || '' }} | |
| runner-type: cpu1 | |
| use-beta: ${{ github.event.inputs.use-beta }} | |
| retry: 1 | |
| name: "${{ matrix.device }} - Android API ${{ matrix.api-level }}${{ matrix.google-play && ' with Play' || '' }} Test Run" |