ci: run iOS xcodebuild tests
parent
974ab5a8dd
commit
1d79254053
|
|
@ -105,9 +105,9 @@ jobs:
|
||||||
sudo xcode-select -s /Applications/Xcode_26.1.app
|
sudo xcode-select -s /Applications/Xcode_26.1.app
|
||||||
xcodebuild -version
|
xcodebuild -version
|
||||||
|
|
||||||
- name: Install SwiftLint / SwiftFormat
|
- name: Install XcodeGen / SwiftLint / SwiftFormat
|
||||||
run: |
|
run: |
|
||||||
brew install swiftlint swiftformat
|
brew install xcodegen swiftlint swiftformat
|
||||||
|
|
||||||
- name: Show toolchain
|
- name: Show toolchain
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -126,3 +126,22 @@ jobs:
|
||||||
|
|
||||||
- name: Swift tests
|
- name: Swift tests
|
||||||
run: swift test --package-path apps/macos --parallel
|
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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue