From 1d792540539d569a684099d29b50a9f6932d6c6c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 14 Dec 2025 02:32:53 +0000 Subject: [PATCH] ci: run iOS xcodebuild tests --- .github/workflows/ci.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bb0d084d..1da8b660c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,9 +105,9 @@ jobs: sudo xcode-select -s /Applications/Xcode_26.1.app xcodebuild -version - - name: Install SwiftLint / SwiftFormat + - name: Install XcodeGen / SwiftLint / SwiftFormat run: | - brew install swiftlint swiftformat + brew install xcodegen swiftlint swiftformat - name: Show toolchain run: | @@ -126,3 +126,22 @@ jobs: - name: Swift tests run: swift test --package-path apps/macos --parallel + + - name: Generate iOS project + run: | + cd apps/ios + xcodegen generate + + - name: iOS tests + run: | + set -euo pipefail + DEST_ID="$( + xcrun simctl list devices available | + grep -m 1 -E 'iPhone.*\\([0-9A-Fa-f-]{36}\\)' | + sed -E 's/.*\\(([0-9A-Fa-f-]{36})\\).*/\\1/' + )" + echo "Using iOS Simulator id: $DEST_ID" + xcodebuild test \ + -project apps/ios/Clawdis.xcodeproj \ + -scheme Clawdis \ + -destination "platform=iOS Simulator,id=$DEST_ID"