diff --git a/coverage-cop/action.yml b/coverage-cop/action.yml index ae215f89..ccb35707 100644 --- a/coverage-cop/action.yml +++ b/coverage-cop/action.yml @@ -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