Skip to content

Commit 797c216

Browse files
install drivers before simulator stratup
1 parent 5155362 commit 797c216

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/functional-test.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,11 @@ jobs:
4747
with:
4848
xcode-version: ${{ env.XCODE_VERSION }}
4949

50-
- run: defaults write com.apple.iphonesimulator PasteboardAutomaticSync -bool false
51-
- name: Start iOS Simulator UI
52-
run: open -Fn "$(xcode-select --print-path)/Applications/Simulator.app"
53-
- name: Prepare iOS simulator
54-
uses: futureware-tech/simulator-action@v4
55-
with:
56-
model: ${{ env.IPHONE_MODEL }}
57-
os_version: ${{ env.IOS_VERSION }}
58-
wait_for_boot: true
59-
shutdown_after_job: false
60-
6150
- name: Install Appium and drivers
6251
run: |
6352
npm install -g appium
6453
appium driver install xcuitest
54+
appium driver run xcuitest download-wda-sim --platform=ios --outdir=$(dirname "$PREBUILT_WDA_PATH")
6555
6656
- name: Start Appium server
6757
uses: ./.github/actions/setup-appium-server
@@ -70,9 +60,17 @@ jobs:
7060
host: ${{ env.APPIUM_TEST_SERVER_HOST }}
7161
server_args: '--relaxed-security'
7262

73-
- name: Downloading prebuilt WDA
63+
- name: Start iOS Simulator UI
7464
run: |
75-
appium driver run xcuitest download-wda-sim --platform=ios --outdir=$(dirname "$PREBUILT_WDA_PATH")
65+
defaults write com.apple.iphonesimulator PasteboardAutomaticSync -bool false
66+
open -Fn "$(xcode-select --print-path)/Applications/Simulator.app"
67+
- name: Prepare iOS simulator
68+
uses: futureware-tech/simulator-action@v4
69+
with:
70+
model: ${{ env.IPHONE_MODEL }}
71+
os_version: ${{ env.IOS_VERSION }}
72+
wait_for_boot: true
73+
shutdown_after_job: false
7674

7775
- name: Set up Python
7876
uses: actions/setup-python@v5
@@ -321,19 +319,6 @@ jobs:
321319
with:
322320
xcode-version: ${{ env.XCODE_VERSION }}
323321

324-
- name: Start iOS Simulator UI
325-
if: matrix.e2e-tests == 'flutter-ios'
326-
run: open -Fn "$(xcode-select --print-path)/Applications/Simulator.app"
327-
328-
- uses: futureware-tech/simulator-action@v4
329-
if: matrix.e2e-tests == 'flutter-ios'
330-
with:
331-
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
332-
model: ${{ env.IPHONE_MODEL }}
333-
os_version: ${{ env.IOS_VERSION }}
334-
wait_for_boot: true
335-
shutdown_after_job: false
336-
337322
- name: Install Appium and drivers
338323
if: matrix.e2e-tests == 'flutter-ios'
339324
run: |
@@ -351,6 +336,21 @@ jobs:
351336
server_args: '--relaxed-security'
352337
log_file: 'appium_ios.log'
353338

339+
- name: Start iOS Simulator UI
340+
if: matrix.e2e-tests == 'flutter-ios'
341+
run: |
342+
defaults write com.apple.iphonesimulator PasteboardAutomaticSync -bool false
343+
open -Fn "$(xcode-select --print-path)/Applications/Simulator.app"
344+
345+
- uses: futureware-tech/simulator-action@v4
346+
if: matrix.e2e-tests == 'flutter-ios'
347+
with:
348+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
349+
model: ${{ env.IPHONE_MODEL }}
350+
os_version: ${{ env.IOS_VERSION }}
351+
wait_for_boot: true
352+
shutdown_after_job: false
353+
354354
- name: Run IOS tests
355355
if: matrix.e2e-tests == 'flutter-ios'
356356
run: |

0 commit comments

Comments
 (0)