Skip to content

Commit

Permalink
feat : test ci 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhoon227 committed Feb 9, 2024
1 parent 620473e commit 435f48a
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/action-test.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
# - "14.3" # Swift 5.8
- "15.0" # Swift 5.9


steps:
- name: Runner Overview
run: system_profiler SPHardwareDataType SPSoftwareDataType SPDeveloperToolsDataType
Expand All @@ -48,18 +47,27 @@ jobs:
echo $ENV >> $OCCUPY_SECRET_DIR/$OCCUPY_SECRET_DIR_FILE_NAME
# CocoaPod 을 사용하므로 설치후 테스트 진행
# - name: Install CocoaPods
# run: |
# pod install --repo-update --project-directory=KCS
- name: Install CocoaPods
run: |
pod install --repo-update --project-directory=KCS
- name: Build
env:
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
xcodebuild build-for-testing -workspace KCS/KCS.xcworkspace -scheme "KCS" -destination "platform=$platform,name=$device" -skipPackagePluginValidation -skipMacroValidation
- name: Test
env:
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
xcodebuild test-without-building -workspace KCS/KCS.xcworkspace -scheme "KCS" -destination "platform=$platform,name=$device" -skipPackagePluginValidation -skipMacroValidation
- name: Install CocoaPods dependencies
working-directory: KCS
run: bundle exec pod install || bundle exec pod install --repo-update
# - name: Test
# run: |
# xcodebuild clean test -workspace KCS/KCS.xcworkspace -scheme "KCS" -destination "platform=iOS Simulator,name=iPhone 14 Pro"

- name: Test
run: |
xcodebuild clean test -project KCS/KCS.xcodeproj -scheme "KCS" -destination "platform=iOS Simulator,name=iPhone 14 Pro"

0 comments on commit 435f48a

Please sign in to comment.