From 75e09c4551e32813aee8ffdcaa0844b3fa73d7c8 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Jun 2025 08:59:03 +0200 Subject: [PATCH] Use run-tests.sh for iOS CI testing - Switch to using run-tests.sh script which properly handles Swift Testing - The Xcode scheme is not configured for test action, so use SPM approach - Remove xcresult upload as run-tests.sh doesn't produce them --- .github/workflows/ios.yml | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 236aebc3..8500be31 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -204,27 +204,16 @@ jobs: - name: Run iOS tests run: | cd ios - echo "Running iOS tests on simulator..." - # First, list available simulators - xcrun simctl list devices available | grep iPhone | head -5 - - # Run tests with a more flexible destination - xcodebuild test \ - -project VibeTunnel.xcodeproj \ - -scheme VibeTunnel \ - -destination "platform=iOS Simulator,name=iPhone 16 Pro" \ - -configuration Debug \ - -derivedDataPath build/DerivedData \ - -resultBundlePath TestResults.xcresult \ - -quiet || { + echo "Running iOS tests using Swift Testing framework..." + # Use the provided test script which handles Swift Testing properly + chmod +x run-tests.sh + ./run-tests.sh || { echo "::error::iOS tests failed" exit 1 } - - name: Upload test results - uses: actions/upload-artifact@v4 - if: always() - with: - name: ios-test-results - path: ios/TestResults.xcresult - retention-days: 7 \ No newline at end of file + - name: Upload test logs on failure + if: failure() + run: | + echo "Tests failed. Check the logs above for details." + # Swift Testing doesn't produce xcresult bundles with run-tests.sh \ No newline at end of file