Skip to content

Commit 8a68685

Browse files
Fix GitHub actions test script
1 parent 2d653fa commit 8a68685

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/swift-tests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,14 @@ jobs:
4646
uses: actions/checkout@v4
4747
- name: Build
4848
run: swift build
49-
- name: Run tests
50-
run: swift test
49+
- name: Select latest Xcode
50+
run: |
51+
LATEST_XCODE=$(ls /Applications | grep '^Xcode_' | sort -V | tail -n1)
52+
echo "Using $LATEST_XCODE"
53+
sudo xcode-select -s "/Applications/$LATEST_XCODE"
54+
- name: Run tests with xcodebuild
55+
run: |
56+
xcodebuild test \
57+
-scheme BlueConnect \
58+
-sdk macosx \
59+
-destination 'platform=macOS'

0 commit comments

Comments
 (0)