File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -54,27 +54,28 @@ jobs:
54
54
run : |
55
55
LCOV_FILES=$(find coverage-artifacts -name "lcov.info" -type f)
56
56
57
- if [ -z "$LCOV_FILES" ]; then
57
+ if [ -z "${ LCOV_FILES} " ]; then
58
58
echo "No lcov.info files found in the artifacts!"
59
59
exit 1
60
60
fi
61
61
62
- CMD="lcov"
63
- for LCOV_FILE in $LCOV_FILES; do
64
- echo "Adding coverage file: $LCOV_FILE"
65
- CMD+=" -a $LCOV_FILE"
62
+ CMD="$(which "lcov")"
63
+ CMD+=" --ignore-errors format"
64
+ for LCOV_FILE in ${LCOV_FILES}; do
65
+ echo "Adding coverage file: ${LCOV_FILE}"
66
+ CMD+=" -a ${LCOV_FILE}"
66
67
done
67
68
CMD+=" -o lcov.info"
68
69
69
- echo "Executing: $ CMD"
70
- eval $ CMD
70
+ echo "Executing: `${ CMD}` "
71
+ eval "${ CMD}"
71
72
72
73
if [ ! -f "lcov.info" ]; then
73
74
echo "Failed to generate merged lcov.info file!"
74
75
exit 1
75
76
fi
76
77
77
- echo "Successfully merged $(echo $ LCOV_FILES | wc -w) coverage files."
78
+ echo "Successfully merged $(echo "${ LCOV_FILES}" | wc -w) coverage files."
78
79
- name : Report coverage
79
80
uses : k1LoW/octocov-action@v1
80
81
with :
You can’t perform that action at this time.
0 commit comments