Skip to content

Commit 2ccaf70

Browse files
committed
[MOB-10368] Reorganize some files
1 parent eb578f3 commit 2ccaf70

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,13 @@ jobs:
1313
with:
1414
xcode-version: latest-stable
1515

16-
- name: Cleanup Simulators
17-
run: |
18-
xcrun simctl shutdown all || true
19-
xcrun simctl erase all || true
20-
xcrun simctl delete unavailable
21-
22-
- name: Create and Boot Simulator
23-
run: |
24-
RUNTIME=$(xcrun simctl list runtimes | grep "iOS-17-0" | awk '{print $NF}')
25-
if [ -z "$RUNTIME" ]; then
26-
echo "Error: Required iOS runtime not found!" >&2
27-
exit 1
28-
fi
29-
xcrun simctl create "iPhone-14-Pro-Max-CI" "iPhone 14 Pro Max" "$RUNTIME"
30-
xcrun simctl boot "iPhone-14-Pro-Max-CI"
31-
32-
- name: Verify Simulators
33-
run: xcrun simctl list devices
34-
35-
- name: Get Simulator ID Dynamically
36-
id: get-simulator-id
37-
run: |
38-
SIMULATOR_ID=$(xcrun simctl list devices | grep "iPhone-14-Pro-Max-CI" | grep -oE '[A-F0-9-]{36}')
39-
echo "SIMULATOR_ID=$SIMULATOR_ID" >> $GITHUB_ENV
40-
4116
- name: Build and test with parallel testing
4217
run: |
4318
xcodebuild test \
4419
-project swift-sdk.xcodeproj \
4520
-scheme swift-sdk \
4621
-sdk iphonesimulator \
47-
-destination "platform=iOS Simulator,id=${SIMULATOR_ID}" \
22+
-destination 'platform=iOS Simulator,name=iPhone 14 Pro Max' \
4823
-enableCodeCoverage YES \
4924
-resultBundlePath TestResults.xcresult \
5025
CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}

0 commit comments

Comments
 (0)