File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ on: pull_request
4
4
5
5
jobs :
6
6
run-tests-job :
7
- runs-on : macos-14
7
+ runs-on : macos-latest
8
8
9
9
steps :
10
10
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18
18
gem install erb
19
19
gem install xcpretty
20
20
21
- - name : List Available Simulators
22
- run : xcrun simctl list
23
-
24
21
- name : Build and test
25
22
run : |
26
- xcrun simctl create "iPhone 16 Pro" com.apple.CoreSimulator.SimDeviceType.iPhone-16-Pro com.apple.CoreSimulator.SimRuntime.iOS-18-1
27
- DEVICE_ROW=$(xcrun simctl list devices | grep "iPhone 16 Pro" | head -1)
28
- echo "Found simulator: $DEVICE_ROW"
29
- DEVICE_ID=$(echo "$DEVICE_ROW" | awk -F'[()]' '{print $2}')
30
- echo "Using device ID: $DEVICE_ID"
31
- xcrun simctl boot "$DEVICE_ID"
32
- xcodebuild test -project swift-sdk.xcodeproj -scheme swift-sdk -sdk iphonesimulator -destination "id=$DEVICE_ID" -enableCodeCoverage YES CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
23
+ xcodebuild test -project swift-sdk.xcodeproj -scheme swift-sdk -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16 Pro' -enableCodeCoverage YES CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
33
24
34
25
- name : CocoaPods lint
35
26
run : pod lib lint --allow-warnings
Original file line number Diff line number Diff line change 13
13
with :
14
14
xcode-version : latest-stable
15
15
16
- - name : List Available Simulators
17
- run : xcrun simctl list
18
-
19
16
- name : Build and test
20
17
env :
21
18
api_key : ${{secrets.E2E_API_KEY}}
You can’t perform that action at this time.
0 commit comments