Skip to content

Commit 8b9c47b

Browse files
committed
[CI] Generate report with xcbeautify
1 parent 61aae4c commit 8b9c47b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/common.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,8 @@ jobs:
123123
${{ inputs.target }} \
124124
${{ matrix.platform }} \
125125
${{ (contains(inputs.buildonly_platforms, matrix.platform) || contains(inputs.buildonly_platforms, 'all')) && 'spmbuildonly' || 'spm' }}
126+
- name: Publish Test Report
127+
uses: mikepenz/action-junit-report@v6
128+
if: success() || failure()
129+
with:
130+
report_paths: 'build/reports/junit.xml'

.github/workflows/firebaseai.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ jobs:
6969
name: xcodebuild-${{ matrix.target }}-${{ matrix.os }}-${{ matrix.xcode }}.log
7070
path: xcodebuild-*.log
7171
retention-days: 2
72+
- name: Publish Test Report
73+
uses: mikepenz/action-junit-report@v6
74+
if: success() || failure()
75+
with:
76+
report_paths: 'build/reports/junit.xml'
7277

7378
pod_lib_lint:
7479
strategy:

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function RunXcodebuild() {
113113
local buildaction="${xcodebuild_args[$# - 1]}" # buildaction is the last arg
114114
local log_filename="xcodebuild-${buildaction}.log"
115115

116-
local xcbeautify_cmd=(xcbeautify --renderer github-actions --disable-logging)
116+
local xcbeautify_cmd=(xcbeautify --renderer github-actions --disable-logging --quiet --is-ci --report junit)
117117

118118
local result=0
119119
NSUnbufferedIO=YES xcodebuild "$@" 2>&1 | tee "$log_filename" | \

0 commit comments

Comments
 (0)