ci: Bump iOS version by mykola-mokhnach · Pull Request #2167 · appium/java-client

Expand Up @@ -22,9 +22,10 @@ env: ANDROID_SDK_VERSION: "28" ANDROID_EMU_NAME: test ANDROID_EMU_TARGET: default XCODE_VERSION: "14.2" IOS_DEVICE_NAME: iPhone 12 IOS_PLATFORM_VERSION: "16.2" # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md XCODE_VERSION: "15.4" IOS_DEVICE_NAME: iPhone 15 IOS_PLATFORM_VERSION: "17.5"
jobs: build: Expand All @@ -34,7 +35,7 @@ jobs: include: - java: 11 # Need to use specific (not `-latest`) version of macOS to be sure the required version of Xcode/simulator is available platform: macos-12 platform: macos-14 e2e-tests: ios - java: 17 platform: ubuntu-latest Expand Down Expand Up @@ -100,19 +101,18 @@ jobs: uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: "${{ env.XCODE_VERSION }}" - name: Prepare iOS simulator if: matrix.e2e-tests == 'ios' uses: futureware-tech/simulator-action@v3 with: model: "${{ env.IOS_DEVICE_NAME }}" os_version: "${{ env.IOS_PLATFORM_VERSION }}" - name: Install XCUITest driver if: matrix.e2e-tests == 'ios' run: appium driver install xcuitest - name: Prebuild XCUITest driver if: matrix.e2e-tests == 'ios' run: appium driver run xcuitest build-wda - name: Prepare iOS simulator if: matrix.e2e-tests == 'ios' run: | xcrun simctl list target_sim_id=$(xcrun simctl list devices available | grep "$IOS_DEVICE_NAME (" | cut -d "(" -f2 | cut -d ")" -f1) open -Fn "/Applications/Xcode_$XCODE_VERSION.app/Contents/Developer/Applications/Simulator.app" xcrun simctl bootstatus $target_sim_id -b - name: Run iOS E2E tests if: matrix.e2e-tests == 'ios' run: ./gradlew e2eIosTest -PisCI -Pselenium.version=$latest_snapshot