File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ jobs:
322
322
fi
323
323
echo -e "::endgroup::"
324
324
325
- lcov --rc lcov_branch_coverage=1 --list build/coverage.info
325
+ lcov --rc lcov_branch_coverage=1 --summary build/coverage.info
326
326
327
327
- name : Test coverage cop action ${{matrix.inputs.repository}}
328
328
if : matrix.inputs.run-complexity && ( success() || failure() )
Original file line number Diff line number Diff line change 46
46
# TODO: The way it grabs the line/branch coverage is a little complicated
47
47
# I'd like to see if this can be done simpler.
48
48
echo -e " ${{ env.bashInfo }} Received LCov Report: ${{ inputs.coverage-file }} ${{ env.bashEnd}}"
49
- lcov --list --rc lcov_branch_coverage=1 ${{ inputs.coverage-file }}
50
- LINE_COVERAGE=$(lcov --list ${{ inputs.coverage-file }} | tail -n 1 | cut -d '| ' -f 2 | sed -n "s/\([^%]*\)%.*/\1/p" )
51
- BRANCH_COVERAGE=$(lcov --rc lcov_branch_coverage=1 --list ${{ inputs.coverage-file }} | tail -n 1 | cut -d '| ' -f 4 | sed -n "s/\([^%]*\)%.*/\1/p" )
49
+ lcov --summary --rc lcov_branch_coverage=1 ${{ inputs.coverage-file }}
50
+ LINE_COVERAGE=$(lcov --summary --rc lcov_branch_coverage=1 ${{ inputs.coverage-file }} | grep -E line.*: | cut -d ': ' -f 2 | cut -d '%' -f 1 | xargs )
51
+ BRANCH_COVERAGE=$(lcov --summary -- rc lcov_branch_coverage=1 ${{ inputs.coverage-file }} | grep -E branches.*: | cut -d ': ' -f 2 | cut -d '%' -f 1 | xargs )
52
52
RESULT=0
53
53
54
54
# Check Line Coverage
You can’t perform that action at this time.
0 commit comments