File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ jobs:
133133 # 예시: 시뮬레이터 대상으로 빌드/테스트 시 destination에서 OS 지정
134134 mkdir -p build/test-results
135135 set -o pipefail
136+ set +e
136137 xcodebuild \
137138 -scheme "$SCHEME" \
138139 -configuration Debug \
@@ -141,11 +142,18 @@ jobs:
141142 -skipMacroValidation \
142143 -showBuildTimingSummary \
143144 build \
144- | tee build.log \
145- | xcpretty -r junit -o build/test-results/junit.xml
145+ | tee build.log
146+ XC_STATUS=${PIPESTATUS[0]}
147+ set -e
148+
149+ if [ -f build.log ]; then
150+ xcpretty -r junit -o build/test-results/junit.xml < build.log || true
151+ fi
152+
153+ exit $XC_STATUS
146154
147155 - name : Comment build failure on PR
148156 uses : mikepenz/action-junit-report@v4
149157 if : always()
150158 with :
151- report_paths : ' build/test-results/junit.xml'
159+ report_paths : ' build/test-results/junit.xml'
You can’t perform that action at this time.
0 commit comments