Skip to content

Commit

Permalink
Add a small gap between the threshold and the coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yogyagamage authored Sep 16, 2024
1 parent c2fafb4 commit 0c47c0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ jobs:
threshold5=34.24
threshold6=74.58
if (( $(echo "$COVERAGE1 > $threshold1" | bc -l) )); then
if (( $(echo "$COVERAGE1 - $threshold1 > 0.1" | bc -l) )); then
echo "New coverage for the module dubbo-common - $COVERAGE1%. Coverage is improved!"
elif (( $(echo "$COVERAGE2 > $threshold2" | bc -l) )); then
elif (( $(echo "$COVERAGE2 - $threshold2 > 0.1" | bc -l) )); then
echo "New coverage for the module dubbo-serialization-hessian2 - $COVERAGE2%. Coverage is improved!"
elif (( $(echo "$COVERAGE3 > $threshold3" | bc -l) )); then
elif (( $(echo "$COVERAGE3 - $threshold3 > 0.1" | bc -l) )); then
echo "New coverage for the module dubbo-serialization-fastjson2 - $COVERAGE3%. Coverage is improved!"
elif (( $(echo "$COVERAGE4 > $threshold4" | bc -l) )); then
elif (( $(echo "$COVERAGE4 - $threshold4 > 0.1" | bc -l) )); then
echo "New coverage for the module dubbo-remoting-api - $COVERAGE4%. Coverage is improved!"
elif (( $(echo "$COVERAGE5 > $threshold5" | bc -l) )); then
elif (( $(echo "$COVERAGE5 - $threshold5 > 0.1" | bc -l) )); then
echo "New coverage for the module dubbo-metrics-api - $COVERAGE5%. Coverage is improved!"
elif (( $(echo "$COVERAGE6 > $threshold6" | bc -l) )); then
elif (( $(echo "$COVERAGE6 - $threshold6 > 0.1" | bc -l) )); then
echo "New coverage for the module dubbo-config-api - $COVERAGE6%. Coverage is improved!"
else
echo "Coverage is not improved."
Expand Down

0 comments on commit 0c47c0e

Please sign in to comment.