Test: swift_test_on_main.yml 생성 #10
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: Swift Run Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: macos-13 # 최신 macOS 환경 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set Xcode Version | |
| run: sudo xcode-select -switch /Applications/Xcode_15.4.app # 적합한 Xcode 버전 설정 | |
| - name: Install CocoaPods | |
| run: | | |
| pod install --repo-update --clean-install --project-directory=HalfFifty_FE/ || exit 1 | |
| - name: Log Installed Xcode Version | |
| run: xcodebuild -version | |
| - name: Log CocoaPods Version | |
| run: pod --version | |
| - name: Debug Files | |
| run: | | |
| ls -la | |
| ls -R HalfFifty_FE | |
| - name: Check Project File | |
| run: cat HalfFifty_FE/HalfFifty_FE.xcodeproj/project.pbxproj | |
| - name: Build and Test for iOS | |
| run: | | |
| xcodebuild clean test \ | |
| -project HalfFifty_FE/HalfFifty_FE.xcodeproj \ | |
| -scheme HalfFifty_FE \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=latest' \ | |
| -verbose | |
| - name: Build and Test for watchOS | |
| run: | | |
| xcodebuild clean test \ | |
| -project HalfFifty_FE/HalfFifty_FE.xcodeproj \ | |
| -scheme "HalfFifty_Watch Watch App" \ | |
| -destination 'platform=watchOS Simulator,name=Apple Watch Series 9 - 45mm,OS=latest' \ | |
| -verbose |