Skip to content

Commit 6c79323

Browse files
committed
[MOB-10368] Reorganize some files
1 parent d601187 commit 6c79323

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,27 @@ jobs:
1313
with:
1414
xcode-version: latest-stable
1515

16-
- name: Cleanup and Reset Simulators
16+
- name: Cleanup Simulators
1717
run: |
1818
xcrun simctl shutdown all || true
1919
xcrun simctl erase all || true
20-
rm -rf ~/Library/Developer/CoreSimulator/Devices
20+
xcrun simctl delete unavailable
21+
RUNTIME=$(xcrun simctl list runtimes | grep "iOS" | grep -v unavailable | head -n 1 | awk '{print $1}')
22+
xcrun simctl create "iPhone-14-Pro-Max-CI" "iPhone 14 Pro Max" "$RUNTIME"
2123
22-
- name: Boot Required Simulator
24+
- name: Verify Simulators
25+
run: xcrun simctl list devices
26+
27+
- name: Boot Simulator
2328
run: |
24-
xcrun simctl boot "iPhone 14 Pro Max"
29+
xcrun simctl boot "iPhone-14-Pro-Max-CI"
2530
2631
- name: Build and test with parallel testing
2732
run: |
2833
xcodebuild test -project swift-sdk.xcodeproj \
2934
-scheme swift-sdk \
3035
-sdk iphonesimulator \
31-
-destination 'platform=iOS Simulator,name=iPhone 14 Pro Max' \
36+
-destination 'platform=iOS Simulator,name=iPhone-14-Pro-Max-CI' \
3237
-enableCodeCoverage YES \
3338
-parallel-testing-enabled YES \
3439
-parallel-testing-worker-count 4 \

0 commit comments

Comments
 (0)