From 3723833aa21956e57a34bd0f69219fe965ea82a7 Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Thu, 22 Feb 2024 14:20:48 +0100 Subject: [PATCH] ci: Use create simulator script for unit tests (#3669) Call create-simulator.sh for unit tests to remove some duplicated code. --- .github/workflows/test.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9ddd0652dfa..65422c47513 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -188,21 +188,13 @@ jobs: - run: ./scripts/ci-select-xcode.sh ${{matrix.xcode}} - # Workaround with a symlink pointed out in: https://github.com/actions/virtual-environments/issues/551#issuecomment-637344435 - name: Prepare iOS 13.7 simulator if: ${{ matrix.platform == 'iOS' && matrix.test-destination-os == '13.7'}} - run: | - sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes - sudo ln -s /Applications/Xcode_11.7.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 13.7.simruntime - xcrun simctl create custom-test-device "iPhone 8" "com.apple.CoreSimulator.SimRuntime.iOS-13-7" + run: ./scripts/create-simulator.sh 11.7 13.7 13-7 - # Workaround with a symlink pointed out in: https://github.com/actions/virtual-environments/issues/551#issuecomment-637344435 - name: Prepare iOS 14.5 simulator if: ${{ matrix.platform == 'iOS' && matrix.test-destination-os == '14.5'}} - run: | - sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes - sudo ln -s /Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 14.5.simruntime - xcrun simctl create custom-test-device "iPhone 8" "com.apple.CoreSimulator.SimRuntime.iOS-14-5" + run: ./scripts/create-simulator.sh 12.5.1 14.5 14-5 - name: Install Slather run: gem install slather