@@ -45,21 +45,24 @@ jobs:
4545 restore-keys : |
4646 ${{ runner.os }}-deriveddata-
4747
48+ - name : Install xcbeautify
49+ run : brew install xcbeautify
50+
4851 - name : Build Debug
4952 run : |
50- cd Recap
53+ set -o pipefail
5154 xcodebuild build \
52- -project Recap.xcodeproj \
55+ -project Recap/Recap .xcodeproj \
5356 -scheme Recap \
5457 -configuration Debug \
5558 -destination 'platform=macOS' \
5659 | xcbeautify
5760
5861 - name : Build Release
5962 run : |
60- cd Recap
63+ set -o pipefail
6164 xcodebuild build \
62- -project Recap.xcodeproj \
65+ -project Recap/Recap .xcodeproj \
6366 -scheme Recap \
6467 -configuration Release \
6568 -destination 'platform=macOS' \
@@ -87,33 +90,36 @@ jobs:
8790 restore-keys : |
8891 ${{ runner.os }}-deriveddata-
8992
93+ - name : Install xcbeautify
94+ run : brew install xcbeautify
95+
9096 - name : Run Tests with Coverage
9197 run : |
92- cd Recap
98+ set -o pipefail
9399 xcodebuild test \
94- -project Recap.xcodeproj \
100+ -project Recap/Recap .xcodeproj \
95101 -scheme Recap \
96102 -destination 'platform=macOS' \
97- -resultBundlePath TestResults \
103+ -resultBundlePath TestResults.xcresult \
98104 -enableCodeCoverage YES \
105+ -only-testing:RecapTests \
99106 | xcbeautify
100107
101108 - name : Generate Coverage Report
102109 run : |
103- cd Recap
104110 xcrun xccov view --report --json TestResults.xcresult > coverage.json
105111
106112 - name : Upload Test Results
107113 uses : actions/upload-artifact@v4
108114 if : always()
109115 with :
110116 name : test-results
111- path : Recap/ TestResults.xcresult
117+ path : TestResults.xcresult
112118
113119 - name : Upload Coverage Reports
114120 uses : codecov/codecov-action@v5
115121 with :
116- file : Recap/ coverage.json
122+ file : coverage.json
117123 flags : unittests
118124 name : recap-coverage
119125 fail_ci_if_error : false
0 commit comments