Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/iOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ jobs:
- name: Run tests with coverage
working-directory: ./Example
run: |
# Resolve an available iPhone simulator at runtime instead of pinning a
# model name, which rots whenever the macos-latest runner image updates.
DEVICE_ID=$(xcrun simctl list devices available --json \
| jq -r '[.devices[][] | select(.name | test("iPhone"))] | first | .udid')
echo "Using simulator: $DEVICE_ID"
xcodebuild \
-workspace RIBs.xcworkspace \
-scheme RIBs-Example \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 16' \
-destination "platform=iOS Simulator,id=$DEVICE_ID" \
-enableCodeCoverage YES \
clean test

Expand Down
Loading