Skip to content

Commit c17df27

Browse files
committed
fix(ci): match both Cobertura.xml and coverage.cobertura.xml in merge-coverage
The macOS build uploads reportgenerator output (Cobertura.xml) while merge-coverage searched only for coverlet raw output (coverage.cobertura.xml). Expand the glob to match both naming conventions and add continue-on-error to update-badges download steps for resilience. Made-with: Cursor
1 parent ebfcd56 commit c17df27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ jobs:
396396
run: |
397397
dotnet tool restore
398398
shopt -s nullglob globstar
399-
REPORTS=(artifacts/coverage-reports/**/coverage.cobertura.xml)
399+
REPORTS=(artifacts/coverage-reports/**/coverage.cobertura.xml artifacts/coverage-reports/**/Cobertura.xml)
400400
if [ ${#REPORTS[@]} -eq 0 ]; then
401401
echo "No coverage reports found — skipping merge."
402402
exit 0
@@ -432,12 +432,14 @@ jobs:
432432
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
433433

434434
- name: Download coverage report
435+
continue-on-error: true
435436
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
436437
with:
437438
name: merged-coverage-report
438439
path: coverage-report
439440

440441
- name: Download test results
442+
continue-on-error: true
441443
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
442444
with:
443445
name: test-results-macos

0 commit comments

Comments
 (0)