Skip to content

Commit ec7bbf7

Browse files
committed
Add conditional flow file selection for iOS device tests and introduce a new simple flow configuration for iPhone 16 models.
1 parent 1f91507 commit ec7bbf7

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/ios-devices-matrix.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,22 @@ jobs:
100100
steps:
101101
- uses: actions/checkout@v3
102102

103+
- name: Set Flow File
104+
id: set-flow-file
105+
run: |
106+
if [[ "${{ matrix.device }}" == "iphone-16-pro" || "${{ matrix.device }}" == "iphone-16-pro-max" ]]; then
107+
echo "flow-file=./flows/ios-flow-simple.yaml" >> $GITHUB_OUTPUT
108+
else
109+
echo "flow-file=./flows/ios-flow.yaml" >> $GITHUB_OUTPUT
110+
fi
111+
103112
- name: Run iOS Device Tests
104113
uses: devicecloud-dev/device-cloud-for-maestro@v1
105114
with:
106115
api-key: ${{ github.event.inputs.environment == 'dev' && secrets.DCD_DEV_API_KEY || secrets.DCD_API_KEY }}
107116
api-url: ${{ github.event.inputs.environment == 'dev' && 'https://api.dev.devicecloud.dev' || '' }}
108117
app-file: ./binaries/sample.zip
109-
workspace: ./flows/ios-flow.yaml
118+
workspace: ${{ steps.set-flow-file.outputs.flow-file }}
110119
ios-device: ${{ matrix.device }}
111120
ios-version: ${{ matrix.ios-version }}
112121
name: "${{ matrix.device }} - iOS ${{ matrix.ios-version }} Test Run"

flows/ios-flow-simple.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
appId: org.wikimedia.wikipedia
2+
---
3+
- launchApp
4+
- assertVisible: "The Free.*"
5+

0 commit comments

Comments
 (0)