fix: prevent sendMessage() auto-reconnect on intentional background d… #84
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| build-and-test: | |
| name: Build & Test (iOS Simulator) | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Xcode version | |
| run: xcodebuild -version | |
| - name: List available simulators | |
| run: xcrun simctl list devices available | grep -E "iPhone" | head -10 | |
| - name: Resolve packages | |
| run: | | |
| xcodebuild -resolvePackageDependencies \ | |
| -project Aptove.xcodeproj \ | |
| -scheme Aptove | |
| - name: Build and run tests | |
| run: | | |
| xcodebuild test \ | |
| -project Aptove.xcodeproj \ | |
| -scheme Aptove \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16' \ | |
| -resultBundlePath TestResults.xcresult \ | |
| -skipPackagePluginValidation \ | |
| -skipMacroValidation \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: TestResults.xcresult | |
| retention-days: 14 |