Skip to content

Commit be4a2b7

Browse files
riglarclaude
andcommitted
Add Android gpu1 tests
Add android-devices-matrix-gpu1.yml workflow to test Android devices with runner-type=gpu1. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eab7a46 commit be4a2b7

1 file changed

Lines changed: 108 additions & 0 deletions

File tree

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Test Android Devices [gpu1]
2+
3+
on:
4+
# Run at 2 AM UTC daily
5+
schedule:
6+
- cron: "0 2 * * *"
7+
# Allow manual triggering
8+
workflow_dispatch:
9+
inputs:
10+
environment:
11+
description: "Environment to run tests against"
12+
type: choice
13+
options:
14+
- prod
15+
- dev
16+
default: "prod"
17+
required: true
18+
19+
jobs:
20+
test-android-devices:
21+
name: ${{ matrix.device }} - API ${{ matrix.api-level }}${{ matrix.google-play && ' Play' || '' }}
22+
runs-on: ubuntu-latest
23+
24+
strategy:
25+
# Don't cancel all jobs if one fails
26+
fail-fast: false
27+
matrix:
28+
include:
29+
# Pixel 6 supports API 29-35
30+
- device: pixel-6
31+
api-level: "29"
32+
- device: pixel-6
33+
api-level: "30"
34+
- device: pixel-6
35+
api-level: "31"
36+
- device: pixel-6
37+
api-level: "32"
38+
- device: pixel-6
39+
api-level: "33"
40+
- device: pixel-6
41+
api-level: "34"
42+
- device: pixel-6
43+
api-level: "35"
44+
45+
# Google Play versions of Pixel 6
46+
- device: pixel-6
47+
api-level: "34"
48+
google-play: true
49+
- device: pixel-6
50+
api-level: "35"
51+
google-play: true
52+
53+
# Pixel 6 Pro supports API 33-35
54+
- device: pixel-6-pro
55+
api-level: "33"
56+
- device: pixel-6-pro
57+
api-level: "34"
58+
- device: pixel-6-pro
59+
api-level: "35"
60+
61+
# Pixel 7 supports API 33-35
62+
- device: pixel-7
63+
api-level: "33"
64+
- device: pixel-7
65+
api-level: "34"
66+
- device: pixel-7
67+
api-level: "35"
68+
69+
# Google Play versions of Pixel 7
70+
- device: pixel-7
71+
api-level: "34"
72+
google-play: true
73+
- device: pixel-7
74+
api-level: "35"
75+
google-play: true
76+
77+
# Pixel 7 Pro supports API 33-35
78+
- device: pixel-7-pro
79+
api-level: "33"
80+
- device: pixel-7-pro
81+
api-level: "34"
82+
- device: pixel-7-pro
83+
api-level: "35"
84+
85+
# Generic Tablet supports API 33-35
86+
- device: generic-tablet
87+
api-level: "33"
88+
- device: generic-tablet
89+
api-level: "34"
90+
- device: generic-tablet
91+
api-level: "35"
92+
93+
94+
steps:
95+
- uses: actions/checkout@v3
96+
97+
- name: Run Android Device Tests
98+
uses: devicecloud-dev/device-cloud-for-maestro@main
99+
with:
100+
api-key: ${{ github.event.inputs.environment == 'dev' && secrets.DCD_DEV_API_KEY || secrets.DCD_API_KEY }}
101+
api-url: ${{ github.event.inputs.environment == 'dev' && 'https://api.dev.devicecloud.dev' || '' }}
102+
app-file: ./binaries/sample.apk
103+
workspace: ./flows/android-flow.yaml
104+
android-device: ${{ matrix.device }}
105+
android-api-level: ${{ matrix.api-level }}
106+
google-play: ${{ matrix.google-play || '' }}
107+
runner-type: gpu1
108+
name: "${{ matrix.device }} - Android API ${{ matrix.api-level }}${{ matrix.google-play && ' with Play' || '' }} Test Run"

0 commit comments

Comments
 (0)