Skip to content

Commit cc72ae2

Browse files
committed
[MOB-10368] Reorganize some files
1 parent 6a354c2 commit cc72ae2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,23 @@ jobs:
3232
- name: Verify Simulators
3333
run: xcrun simctl list devices
3434

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+
3541
- name: Build and test with parallel testing
3642
run: |
37-
xcodebuild test -project swift-sdk.xcodeproj \
43+
xcodebuild test \
44+
-project swift-sdk.xcodeproj \
3845
-scheme swift-sdk \
3946
-sdk iphonesimulator \
40-
-destination 'platform=iOS Simulator,name=iPhone-14-Pro-Max-CI' \
47+
-destination "platform=iOS Simulator,id=${SIMULATOR_ID}" \
4148
-enableCodeCoverage YES \
4249
-parallel-testing-enabled YES \
4350
-parallel-testing-worker-count 4 \
51+
-only-testing:swift-sdk/unit-tests \
4452
CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
4553
4654
- name: CocoaPods lint

0 commit comments

Comments
 (0)