File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff 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 : |
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 : |
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
You can’t perform that action at this time.
0 commit comments