From 7ef74d0ce041d4de9b40f74dd0f7d4731510a5f8 Mon Sep 17 00:00:00 2001 From: clangenb <37865735+clangenb@users.noreply.github.com> Date: Thu, 2 Dec 2021 23:03:29 +0100 Subject: [PATCH] [GA] fix IOS-emulator setup + remove very flaky android api 29 emulator (#221) * [scripts/io_init_env] list available simulator runtimes * [GA] use correct IOS runtimes when creating the emulators * [GA] android CI remove way to flaky android 29 emulator --- .github/workflows/android_integration_test.yml | 2 +- .github/workflows/ios_integration_test.yaml | 4 ++-- scripts/ios_init_env.sh | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android_integration_test.yml b/.github/workflows/android_integration_test.yml index 068bde9e1..3dab294a1 100644 --- a/.github/workflows/android_integration_test.yml +++ b/.github/workflows/android_integration_test.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: # lower api-levels would be supported but the webView that is pre-installed on these images does not. - api-level: [28, 29] # 30 is broken for now, probably due to low emulator performance. + api-level: [28] # 30 is broken for now, 29 is way too flaky include: - os: macos-latest # needs to be the `id` from the devices given by `avdmanager list device` diff --git a/.github/workflows/ios_integration_test.yaml b/.github/workflows/ios_integration_test.yaml index e5ec8d2c1..bfa0c49b1 100644 --- a/.github/workflows/ios_integration_test.yaml +++ b/.github/workflows/ios_integration_test.yaml @@ -56,11 +56,11 @@ jobs: - name: "Create Simulator if iPad Pro 2nd gen" if: ${{ matrix.device == 'iPad Pro (12.9-inch) (2nd generation)' }} - run: xcrun simctl create "iPad Pro (12.9-inch) (2nd generation)" "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-" "com.apple.CoreSimulator.SimRuntime.iOS-14-4" + run: xcrun simctl create "iPad Pro (12.9-inch) (2nd generation)" "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-" "com.apple.CoreSimulator.SimRuntime.iOS-15-0" - name: "Create Simulator if iPad Pro 3rd gen" if: ${{ matrix.device == 'iPad Pro (12.9-inch) (3rd generation)' }} - run: xcrun simctl create "iPad Pro (12.9-inch) (3rd generation)" "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-" "com.apple.CoreSimulator.SimRuntime.iOS-14-4" + run: xcrun simctl create "iPad Pro (12.9-inch) (3rd generation)" "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-" "com.apple.CoreSimulator.SimRuntime.iOS-15-0" - name: "Start Simulator" working-directory: ./scripts diff --git a/scripts/ios_init_env.sh b/scripts/ios_init_env.sh index f246d400e..826448c31 100755 --- a/scripts/ios_init_env.sh +++ b/scripts/ios_init_env.sh @@ -5,3 +5,6 @@ set -euo pipefail brew tap wix/brew brew install applesimutils + +# show available simulator runtimes +xcrun simctl list \ No newline at end of file