-
Notifications
You must be signed in to change notification settings - Fork 0
156 lines (141 loc) · 6.89 KB
/
feature-tests.yml
File metadata and controls
156 lines (141 loc) · 6.89 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: Test Feature Flags
on:
# Run at 5 AM UTC daily
schedule:
- cron: "0 5 * * *"
# Allow manual triggering
workflow_dispatch:
inputs:
environment:
description: "Environment to run tests against"
type: choice
options:
- prod
- dev
default: "prod"
required: true
jobs:
test-feature-flags:
name: Run Feature Flags Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Async Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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
name: Run Async Test
async: true
- name: Run json-file Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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
name: Run Json File Flag Test
json-file: true
- name: Extract and Log Console URL
run: |
jq -r '.consoleUrl' '/home/runner/work/infra-tests/infra-tests/Run Json File Flag Test_dcd.json'
- name: Run Android Locale Test
continue-on-error: true
uses: devicecloud-dev/device-cloud-for-maestro@v1
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-german.yaml
device-locale: "de_DE"
name: Run Android Locale Test
- name: Run iOS Locale Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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.zip
workspace: ./flows/ios-flow-german.yaml
device-locale: "de_DE"
name: Run iOS Locale Test
- name: Run iOS M4 Runner Type Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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.zip
workspace: ./flows/ios-flow.yaml
runner-type: m4
name: Run iOS M4 Runner Type Test
- name: Run Android Orientation Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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
orientation: 90
name: Run Android Orientation Test
- name: Run Download Artifacts Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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
download-artifacts: ALL
name: Run Download Artifacts Test
- name: Assert Download Artifacts ZIP File
run: |
# Check if any download zip files were created
if ls artifacts.zip 1> /dev/null 2>&1; then
echo "✅ Download artifacts ZIP file found:"
ls -la artifacts.zip
else
echo "❌ No download artifacts ZIP file found"
echo "Files in current directory:"
ls -la
exit 1
fi
- name: Run Android Additional App Binary IDs Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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
additional-app-binary-ids: |
${{ github.event.inputs.environment == 'dev' && '6a958ab7-b028-4f33-9cb2-1e1063dea9a9' || '90dda1a7-366a-4573-915a-c5818a1f1206' }}
name: Run Android Additional App Binary IDs Test
- name: Run iOS Additional App Binary IDs Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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.zip
workspace: ./flows/ios-flow.yaml
additional-app-binary-ids: |
${{ github.event.inputs.environment == 'dev' && '6953f2ed-a26e-43aa-9cd4-af5ad84c377e' || '7e155646-d554-497e-a53b-87d8f0f198e9' }}
name: Run iOS Additional App Binary IDs Test
- name: Run Android Environment Variables Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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-env.yaml
env: |
BUNDLEID=org.wikipedia
name: Run Android Environment Variables Test
- name: Run iOS Environment Variables Test
uses: devicecloud-dev/device-cloud-for-maestro@v1
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.zip
workspace: ./flows/ios-flow-env.yaml
env: |
BUNDLEID=org.wikimedia.wikipedia
name: Run iOS Environment Variables Test