Skip to content

Commit

Permalink
Update input parameters in test.yml for coverage-cop
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarw13 committed Feb 15, 2021
1 parent b3b73c2 commit 194a409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ jobs:
uses: ./coverage-cop
with:
path: ./build/coverage.info
branch-min-coverage: 100
line-min-coverage: 99
branch-coverage-min: 70
line-coverage-min: 100
test-memory-statistics:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion coverage-cop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:
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 [[ $(echo "$BRANCH_COVERAGE < ${{ inputs.branch-coverage-min }}" | bc) -ne 0 ]]; then
echo "Branch Coverage is too low."
RESULT=1
fi
Expand Down

0 comments on commit 194a409

Please sign in to comment.