Skip to content

Commit a6476a2

Browse files
committed
💚 fix coverage CI
1 parent 7f7ac35 commit a6476a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ jobs:
8888
name: test-results-${{ matrix.dotnet }}
8989
path: '**/*.trx'
9090

91-
- name: Upload coverage
91+
- name: Upload raw coverage
9292
uses: actions/upload-artifact@v4
93-
if: always()
9493
with:
95-
name: coverage-${{ matrix.dotnet }}
96-
path: '**/coverage.cobertura.xml'
94+
name: coverage-${{ matrix.dotnet-version }}
95+
path: TestResults/**/*.cobertura.xml
96+
if-no-files-found: error
9797

9898
coverage:
9999
name: Coverage (merged)
@@ -124,10 +124,10 @@ jobs:
124124
- name: Install ReportGenerator
125125
run: dotnet tool install -g dotnet-reportgenerator-globaltool
126126

127-
- name: Generate HTML & Cobertura
127+
- name: Generate consolidated report
128128
run: |
129129
reportgenerator \
130-
-reports:"coverage/**/*.cobertura.xml"
130+
-reports:"**/coverage.cobertura.xml" \
131131
-targetdir:"coverage/report" \
132132
-reporttypes:"Html;Cobertura;JsonSummary"
133133

0 commit comments

Comments
 (0)