Skip to content

Commit 3990c06

Browse files
committed
Update iOS workflow
1 parent 61620b4 commit 3990c06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ios-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ jobs:
7575
- name: Checkout
7676
uses: actions/checkout@v2
7777
- name: Build and Test
78-
run: swift package generate-xcodeproj && xcrun xcodebuild test -scheme "Vexil-Package" -destination "platform=iOS Simulator,name=iPhone 8"
78+
run: |
79+
DEVICE_ID=`xcrun simctl list --json devices available iPhone | jq -r '.devices | to_entries | map(select(.value | add)) | sort_by(.key) | last.value | first.udid'`
80+
swift package generate-xcodeproj
81+
xcrun xcodebuild test -scheme "Vexil-Package" -destination "platform=iOS Simulator,id=$DEVICE_ID"
7982
8083
build-ios-macos-12:
8184
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)