Skip to content

Commit 922cc7d

Browse files
committed
Use xcpretty to produce easier to read build logs
1 parent d18dc3a commit 922cc7d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/checks.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
git diff --exit-code Support/Carthage/Readium.xcodeproj
3434
- name: Build
3535
run: |
36-
xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform,name=$device"
36+
xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
3737
- name: Test
3838
run: |
39-
xcodebuild test-without-building -scheme "$scheme" -destination "platform=$platform,name=$device"
39+
xcodebuild test-without-building -scheme "$scheme" -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
4040
4141
lint:
4242
name: Lint
@@ -91,7 +91,7 @@ jobs:
9191
run: make dev lcp=${{ secrets.LCP_URL_SPM }}
9292
- name: Build
9393
run: |
94-
xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device"
94+
xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
9595
9696
int-spm:
9797
name: Integration (Swift Package Manager)
@@ -118,7 +118,7 @@ jobs:
118118
run: make spm lcp=${{ secrets.LCP_URL_SPM }} commit=$commit_sha
119119
- name: Build
120120
run: |
121-
xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device"
121+
xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
122122
123123
int-carthage:
124124
name: Integration (Carthage)
@@ -145,7 +145,7 @@ jobs:
145145
run: make carthage lcp=${{ secrets.LCP_URL_CARTHAGE }} commit=$commit_sha
146146
- name: Build
147147
run: |
148-
xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device"
148+
xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
149149
150150
# Warning: This job cannot actually test the state of the current commit,
151151
# but will check that the latest branch/tag set in the Podspecs are valid.
@@ -168,4 +168,4 @@ jobs:
168168
run: make cocoapods lcp=${{ secrets.LCP_URL_COCOAPODS }} commit=$commit_sha
169169
- name: Build
170170
run: |
171-
xcodebuild build -workspace TestApp.xcworkspace -scheme TestApp -destination "platform=$platform,name=$device"
171+
xcodebuild build -workspace TestApp.xcworkspace -scheme TestApp -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi

0 commit comments

Comments
 (0)