Skip to content

Commit 0e0f8a8

Browse files
committed
[MOB-10364] Update according to new discussiom
1 parent 7fcfeaa commit 0e0f8a8

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: pull_request
44

55
jobs:
66
run-tests-job:
7-
runs-on: macos-14
7+
runs-on: macos-latest
88

99
steps:
1010
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -18,18 +18,9 @@ jobs:
1818
gem install erb
1919
gem install xcpretty
2020
21-
- name: List Available Simulators
22-
run: xcrun simctl list
23-
2421
- name: Build and test
2522
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]}
3324
3425
- name: CocoaPods lint
3526
run: pod lib lint --allow-warnings

.github/workflows/e2e.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
with:
1414
xcode-version: latest-stable
1515

16-
- name: List Available Simulators
17-
run: xcrun simctl list
18-
1916
- name: Build and test
2017
env:
2118
api_key: ${{secrets.E2E_API_KEY}}

0 commit comments

Comments
 (0)