Test: swift_test_on_main.yml 생성 #4
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-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install CocoaPods | |
| run: | | |
| pod install --repo-update --clean-install --project-directory=HalfFifty_FE/ | |
| - 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' | |
| - 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' |