Skip to content

Commit bf1b7f1

Browse files
committed
[MOB-10368] Reorganize some files
1 parent 7546674 commit bf1b7f1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ jobs:
1313
with:
1414
xcode-version: latest-stable
1515

16+
- name: Cleanup Simulators
17+
run: |
18+
xcrun simctl shutdown all
19+
xcrun simctl erase all
20+
21+
- name: Restart CoreSimulatorService
22+
run: |
23+
launchctl kickstart -k "gui/$(id -u)/com.apple.CoreSimulator.CoreSimulatorService"
24+
25+
- name: Boot Required Simulator
26+
run: |
27+
xcrun simctl boot "iPhone 14 Pro Max" || true
28+
1629
- name: Build and test with parallel testing
1730
run: |
1831
xcodebuild test -project swift-sdk.xcodeproj \
@@ -21,7 +34,7 @@ jobs:
2134
-destination 'platform=iOS Simulator,name=iPhone 14 Pro Max' \
2235
-enableCodeCoverage YES \
2336
-parallel-testing-enabled YES \
24-
-parallel-testing-worker-count 6 \
37+
-parallel-testing-worker-count 4 \
2538
CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
2639
2740
- name: CocoaPods lint

0 commit comments

Comments
 (0)