Skip to content

Commit 4bd721d

Browse files
Fix paths
1 parent 7f368ca commit 4bd721d

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/pr-tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ jobs:
3030
restore-keys: |
3131
${{ runner.os }}-deriveddata-
3232
33+
- name: Install xcbeautify
34+
run: brew install xcbeautify
35+
3336
- name: Build and Test
3437
run: |
35-
cd Recap
38+
set -o pipefail
3639
xcodebuild test \
37-
-project Recap.xcodeproj \
40+
-project Recap/Recap.xcodeproj \
3841
-scheme Recap \
3942
-destination 'platform=macOS' \
40-
-resultBundlePath TestResults \
43+
-resultBundlePath TestResults.xcresult \
44+
-only-testing:RecapTests \
4145
| xcbeautify
4246
4347
- name: Comment PR on Failure

.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,36 @@ jobs:
2929
restore-keys: |
3030
${{ runner.os }}-deriveddata-
3131
32+
- name: Install xcbeautify
33+
run: brew install xcbeautify
34+
3235
- name: Build and Test
3336
run: |
34-
cd Recap
37+
set -o pipefail
3538
xcodebuild test \
36-
-project Recap.xcodeproj \
39+
-project Recap/Recap.xcodeproj \
3740
-scheme Recap \
3841
-destination 'platform=macOS' \
39-
-resultBundlePath TestResults \
42+
-resultBundlePath TestResults.xcresult \
4043
-enableCodeCoverage YES \
44+
-only-testing:RecapTests \
4145
| xcbeautify
4246
4347
- name: Upload Test Results
4448
uses: actions/upload-artifact@v4
4549
if: always()
4650
with:
4751
name: test-results
48-
path: Recap/TestResults.xcresult
52+
path: TestResults.xcresult
4953

5054
- name: Generate Coverage Report
5155
run: |
52-
cd Recap
5356
xcrun xccov view --report --json TestResults.xcresult > coverage.json
5457
5558
- name: Upload Coverage
5659
uses: codecov/codecov-action@v5
5760
with:
58-
file: Recap/coverage.json
61+
file: coverage.json
5962
flags: unittests
6063
name: recap-coverage
6164
fail_ci_if_error: false

0 commit comments

Comments
 (0)