Skip to content

Chore: 프로젝트 설정 수정 #15

Chore: 프로젝트 설정 수정

Chore: 프로젝트 설정 수정 #15

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.app
- 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: List Available Schemes in Workspace
run: |
xcodebuild -workspace HalfFifty_FE/HalfFifty_FE.xcworkspace -list
- name: Build and Test for iOS
run: |
xcodebuild clean test \
-workspace HalfFifty_FE/HalfFifty_FE.xcworkspace \
-scheme HalfFifty_FE \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=latest' \
-verbose
- name: Build and Test for watchOS
run: |
xcodebuild clean test \
-workspace HalfFifty_FE/HalfFifty_FE.xcworkspace \
-scheme "HalfFifty_Watch Watch App" \
-destination 'platform=watchOS Simulator,name=Apple Watch Series 9 - 45mm,OS=latest' \
-verbose
name: Swift Run Test

Check failure on line 53 in .github/workflows/swift_test_on_main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/swift_test_on_main.yml

Invalid workflow file

You have an error in your yaml syntax on line 53
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Set Xcode Version
run: sudo xcode-select -switch /Applications/Xcode.app
- 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
- name: Check Project File
run: cat HalfFifty_FE/HalfFifty_FE.xcodeproj/project.pbxproj
- name: Build and Test for iOS
run: |
xcodebuild clean test \
-workspace HalfFifty_FE/HalfFifty_FE.xcworkspace \
-scheme HalfFifty_FE \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=latest' \
-verbose
- name: Build and Test for watchOS
run: |
xcodebuild clean test \
-workspace HalfFifty_FE/HalfFifty_FE.xcworkspace \
-scheme "HalfFifty_Watch Watch App" \
-destination 'platform=watchOS Simulator,name=Apple Watch Series 9 - 45mm,OS=latest' \
-verbose