Skip to content

Commit 6dd9b7d

Browse files
Fix ios github actions
Co-authored-by: SrinivasanTarget <[email protected]>
1 parent d0d7cfc commit 6dd9b7d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/appium3_ios.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,17 @@ jobs:
3232
run: open -Fn "$(xcode-select --print-path)/Applications/Simulator.app"
3333

3434
- name: Boot simulator
35-
id: boot_sim
35+
id: prepareSimulator
3636
uses: futureware-tech/simulator-action@v4
3737
with:
3838
model: 'iPhone 14'
3939
os_version: '17.5'
4040
shutdown_after_job: false
4141
wait_for_boot: true
4242

43-
- name: Capture UDID
44-
id: udid
45-
run: |
43+
- run: |
4644
target_sim_id=$(xcrun simctl list devices available | grep "iPhone 14 (17.5)" | sed -n 's/.*(\([^)]*\)).*/\1/p' | head -n 1)
47-
echo "udid=$target_sim_id" >> $GITHUB_OUTPUT
45+
echo "udid=$target_sim_id" >> $GITHUB_ENV
4846
4947
- name: Install Appium and deps
5048
run: |
@@ -63,8 +61,8 @@ jobs:
6361
6462
- name: Install and launch WDA on Simulator
6563
run: |
66-
xcrun simctl install "${{ steps.udid.outputs.udid }}" "$PREBUILT_WDA_PATH/WebDriverAgentRunner-Runner.app"
67-
xcrun simctl launch "${{ steps.udid.outputs.udid }}" "com.facebook.WebDriverAgentRunner.xctrunner"
64+
xcrun simctl install ${{ env.udid }} "$PREBUILT_WDA_PATH/WebDriverAgentRunner-Runner.app"
65+
xcrun simctl launch ${{ env.udid }} "com.facebook.WebDriverAgentRunner.xctrunner"
6866
6967
- name: Download sample iOS app
7068
run: |
@@ -77,7 +75,7 @@ jobs:
7775
7876
- name: Run WDIO iOS
7977
env:
80-
UDID: ${{ steps.udid.outputs.udid }}
78+
UDID: ${{ env.udid }}
8179
APP_PATH: ${{ env.APP_PATH }}
8280
run: |
8381
mkdir -p appium-logs

0 commit comments

Comments
 (0)