Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgoedjen committed May 7, 2024
1 parent 9f177c7 commit 4e3bd48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ jobs:
- name: Test
run: |
pushd Sources
xcrun xcodebuild test -scheme Whiff -sdk iphonesimulator -destination "platform=iOS Simulator,id=Any iOS Simulator Device"
simruntime=$(xcrun simctl list runtimes -j | jq '.runtimes[0].identifier')
prefix=".devices."
suffix="[0].udid"
deviceid=$(xcrun simctl list -j | jq -r "$prefix$simruntime$suffix")
xcrun xcodebuild test -scheme Whiff -sdk iphonesimulator -destination "platform=iOS Simulator,id=$deviceid"
popd

0 comments on commit 4e3bd48

Please sign in to comment.