diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 922e9584386..8a791cf73a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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."