File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,15 +14,16 @@ jobs:
1414 run : swift test --enable-code-coverage
1515 - name : Generate coverage report
1616 run : |
17- CODECOV_PATH=$(swift test --show-codecov-path)
18- PROFDATA_PATH=$(dirname "$CODECOV_PATH")/default.profdata
17+ CODECOV_DIR=$(find .build -name 'codecov' -type d | head -1)
18+
19+ xcrun llvm-profdata merge -sparse "$CODECOV_DIR"/*.profraw -o default.profdata
20+ PROFDATA_PATH="default.profdata"
1921
2022 ALL_OBJECT_FILES=$(find .build -name "*.o" -type f)
2123 SOURCE_OBJECT_FILES=$(echo "$ALL_OBJECT_FILES" | grep "MarkdownSyntaxTests.build")
2224
2325 xcrun llvm-cov report -instr-profile $PROFDATA_PATH $SOURCE_OBJECT_FILES
24-
25- xcrun llvm-cov export --format="lcov" -instr-profile $PROFDATA_PATH $SOURCE_OBJECT_FILES >> lcov.info
26+ xcrun llvm-cov export -format="lcov" -instr-profile $PROFDATA_PATH $SOURCE_OBJECT_FILES >> lcov.info
2627 - name : Upload coverage to Codecov
2728 uses : codecov/codecov-action@v5.4.3
2829 with :
You can’t perform that action at this time.
0 commit comments