fix: Mark Dog ViewModel factory methods as @MainActor #11
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: iOS CI | |
| on: | |
| push: | |
| branches: [ main, 'test/**' ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| lint: | |
| name: SwiftLint | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: SwiftLint | |
| run: | | |
| brew install swiftlint | |
| swiftlint | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_16.1.app | |
| - name: Show Xcode version | |
| run: xcodebuild -version | |
| - name: Build (Mac Catalyst - iOS Simulator unavailable on CI) | |
| run: | | |
| xcodebuild clean build \ | |
| -project Shell.xcodeproj \ | |
| -scheme Shell \ | |
| -destination 'platform=macOS,name=My Mac' \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO | |
| - name: Note about iOS Simulator Tests | |
| run: | | |
| echo "⚠️ iOS Simulator tests skipped - Xcode 16.1 on GitHub Actions has no iOS simulators" | |
| echo "📋 Local test verification required before merge" | |
| echo "✅ Build verification passed with Mac Catalyst variant" | |
| analyze: | |
| name: Static Analysis | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_16.1.app | |
| - name: Run Analyzer (Mac Catalyst) | |
| run: | | |
| xcodebuild analyze \ | |
| -project Shell.xcodeproj \ | |
| -scheme Shell \ | |
| -destination 'platform=macOS,name=My Mac' \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO |