File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -424,29 +424,38 @@ jobs:
424424
425425 - name : Download all coverage artifacts
426426 uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
427- continue-on-error : true
428427 with :
429428 pattern : coverage-*
430- path : coverage-data/
431- merge-multiple : true
429+ path : coverage-artifacts/
432430
433431 - name : Combine coverage files
434432 id : combine
435433 run : |
436434 set -euo pipefail
437435
436+ # List downloaded artifacts structure
437+ echo "=== Downloaded artifacts structure ==="
438+ find coverage-artifacts -type f -name ".coverage.*" || echo "No .coverage.* files found"
439+
440+ # Collect all coverage files from artifact subdirectories
438441 shopt -s nullglob
439- coverage_files=(coverage-data /.coverage.*)
442+ coverage_files=(coverage-artifacts/* /.coverage.*)
440443
441444 if [ ${#coverage_files[@]} -eq 0 ]; then
442445 echo "No coverage files to combine (tests may have failed)"
443446 echo "success=false" >> $GITHUB_OUTPUT
444447 exit 0
445448 fi
446449
447- echo "Combining ${#coverage_files[@]} coverage file(s)"
448- cd coverage-data
450+ echo "Found ${#coverage_files[@]} coverage file(s) to combine"
449451
452+ # Copy all coverage files to a single directory for combining
453+ mkdir -p coverage-data
454+ for file in "${coverage_files[@]}"; do
455+ cp "$file" coverage-data/
456+ done
457+
458+ cd coverage-data
450459 coverage combine
451460 coverage xml -o coverage.xml
452461 coverage report
You can’t perform that action at this time.
0 commit comments