Skip to content

Commit aa49bc3

Browse files
fix(ci): resolve Codecov path mismatch causing unusable reports (#603)
Add fixes section to strip Docker container path prefix (/github/workspace/) from coverage reports generated by Unity test runner, allowing Codecov to correctly match source files in the repository. Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 68a0445 commit aa49bc3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ coverage:
1212
target: auto
1313
threshold: 1%
1414

15+
# Fix Docker container path prefix in coverage reports
16+
# Unity test runner generates paths like /github/workspace/UnityProject/...
17+
# This strips the /github/workspace/ prefix to match repository structure
18+
fixes:
19+
- "/github/workspace/::"
20+
1521
# Flag management for per-package coverage tracking
1622
flag_management:
1723
default_rules:

0 commit comments

Comments
 (0)