-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathandroid-devices-matrix-chrome-cpu1.yml
More file actions
129 lines (118 loc) · 3.71 KB
/
android-devices-matrix-chrome-cpu1.yml
File metadata and controls
129 lines (118 loc) · 3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: Test Android Devices [chrome, cpu1]
on:
# Run daily at 11 PM UTC
# schedule:
# - cron: '0 23 * * *'
# 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 }}
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"
# Google Play versions of Pixel 6
- device: pixel-6
api-level: "34"
google-play: true
- device: pixel-6
api-level: "35"
google-play: true
- device: pixel-6
api-level: "36"
google-play: true
# Pixel 6 Pro supports API 33-36
- device: pixel-6-pro
api-level: "33"
- device: pixel-6-pro
api-level: "34"
- device: pixel-6-pro
api-level: "35"
- device: pixel-6-pro
api-level: "36"
# 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 versions of Pixel 7
- device: pixel-7
api-level: "34"
google-play: true
- device: pixel-7
api-level: "35"
google-play: true
- device: pixel-7
api-level: "36"
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-36
- device: generic-tablet
api-level: "33"
- device: generic-tablet
api-level: "34"
- device: generic-tablet
api-level: "35"
- device: generic-tablet
api-level: "36"
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/chrome-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 }}
name: "${{ matrix.device }} - Android API ${{ matrix.api-level }}${{ matrix.google-play && ' with Play' || '' }} Test Run"