Skip to content

Commit 7d7d7fe

Browse files
Fixing workflows
1 parent 729338b commit 7d7d7fe

3 files changed

Lines changed: 19 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [ main ]
88
workflow_dispatch:
99

10+
defaults:
11+
run:
12+
working-directory: ./Recap
13+
1014
jobs:
1115
lint:
1216
name: SwiftLint
@@ -111,12 +115,12 @@ jobs:
111115
if: always()
112116
with:
113117
name: test-results
114-
path: test-results.xml
118+
path: Recap/test-results.xml
115119

116120
- name: Upload Coverage Reports
117121
uses: codecov/codecov-action@v5
118122
with:
119-
file: ./coverage.lcov
123+
file: ./Recap/coverage.lcov
120124
flags: unittests
121125
name: recap-coverage
122126
fail_ci_if_error: false
@@ -125,30 +129,6 @@ jobs:
125129
uses: mikepenz/action-junit-report@v4
126130
if: always()
127131
with:
128-
report_paths: 'test-results.xml'
132+
report_paths: 'Recap/test-results.xml'
129133
check_name: 'Test Results'
130-
fail_on_failure: true
131-
132-
check-generated-mocks:
133-
name: Check Generated Mocks
134-
runs-on: macos-15
135-
136-
steps:
137-
- name: Checkout code
138-
uses: actions/checkout@v4
139-
140-
- name: Setup Xcode
141-
uses: maxim-lobanov/setup-xcode@v1
142-
with:
143-
xcode-version: '16.0'
144-
145-
- name: Build to Generate Mocks
146-
run: swift build
147-
148-
- name: Check for Uncommitted Mock Changes
149-
run: |
150-
if [[ -n $(git status --porcelain) ]]; then
151-
echo "Generated mocks are not committed. Please build locally and commit the generated mock files."
152-
git status --porcelain
153-
exit 1
154-
fi
134+
fail_on_failure: true

.github/workflows/pr-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ permissions:
88
contents: read
99
pull-requests: write
1010

11+
defaults:
12+
run:
13+
working-directory: ./Recap
14+
1115
jobs:
1216
test:
1317
name: Test PR

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [ main ]
88
workflow_dispatch:
99

10+
defaults:
11+
run:
12+
working-directory: ./Recap
13+
1014
jobs:
1115
test:
1216
name: Run Tests
@@ -45,13 +49,13 @@ jobs:
4549
if: always()
4650
with:
4751
name: test-results
48-
path: test-results.xml
52+
path: Recap/test-results.xml
4953

5054
- name: Publish Test Report
5155
uses: mikepenz/action-junit-report@v4
5256
if: always()
5357
with:
54-
report_paths: 'test-results.xml'
58+
report_paths: 'Recap/test-results.xml'
5559
check_name: 'Test Results'
5660
fail_on_failure: true
5761

@@ -83,7 +87,7 @@ jobs:
8387
- name: Upload Coverage to Codecov
8488
uses: codecov/codecov-action@v5
8589
with:
86-
file: ./coverage.lcov
90+
file: ./Recap/coverage.lcov
8791
flags: unittests
8892
name: recap-coverage
8993
fail_ci_if_error: false

0 commit comments

Comments
 (0)