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