We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61620b4 commit 3990c06Copy full SHA for 3990c06
.github/workflows/ios-tests.yml
@@ -75,7 +75,10 @@ jobs:
75
- name: Checkout
76
uses: actions/checkout@v2
77
- name: Build and Test
78
- run: swift package generate-xcodeproj && xcrun xcodebuild test -scheme "Vexil-Package" -destination "platform=iOS Simulator,name=iPhone 8"
+ 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"
82
83
build-ios-macos-12:
84
runs-on: ubuntu-latest
0 commit comments