Skip to content

Commit

Permalink
Test change in shell logic in coverage-cop action
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarw13 committed Feb 15, 2021
1 parent 194a409 commit f301f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coverage-cop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ runs:
RESULT=0
echo "Required line coverage: ${{ inputs.line-coverage-min }}"
echo "Line coverage: $LINE_COVERAGE"
if [[ $(echo "$LINE_COVERAGE < ${{ inputs.line-coverage-min }}" | bc) -ne 0 ]]; then
if [[ "$LINE_COVERAGE" < "${{ inputs.line-coverage-min }}" ]]; then
echo "Line Coverage is too low."
RESULT=1
fi
echo "Required branch coverage: ${{ inputs.branch-coverage-min }}"
echo "Branch coverage: $BRANCH_COVERAGE"
if [[ $(echo "$BRANCH_COVERAGE < ${{ inputs.branch-coverage-min }}" | bc) -ne 0 ]]; then
if [[ "$BRANCH_COVERAGE" < "${{ inputs.branch-coverage-min }}" ]]; then
echo "Branch Coverage is too low."
RESULT=1
fi
Expand Down

0 comments on commit f301f63

Please sign in to comment.