File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,23 @@ jobs:
32
32
- name : Verify Simulators
33
33
run : xcrun simctl list devices
34
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
+
35
41
- name : Build and test with parallel testing
36
42
run : |
37
- xcodebuild test -project swift-sdk.xcodeproj \
43
+ xcodebuild test \
44
+ -project swift-sdk.xcodeproj \
38
45
-scheme swift-sdk \
39
46
-sdk iphonesimulator \
40
- -destination ' platform=iOS Simulator,name=iPhone-14-Pro-Max-CI' \
47
+ -destination " platform=iOS Simulator,id=${SIMULATOR_ID}" \
41
48
-enableCodeCoverage YES \
42
49
-parallel-testing-enabled YES \
43
50
-parallel-testing-worker-count 4 \
51
+ -only-testing:swift-sdk/unit-tests \
44
52
CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
45
53
46
54
- name : CocoaPods lint
You can’t perform that action at this time.
0 commit comments