diff --git a/.yamato/yamato-config.yml b/.yamato/yamato-config.yml index 1ea05bc..2ee6720 100644 --- a/.yamato/yamato-config.yml +++ b/.yamato/yamato-config.yml @@ -15,7 +15,7 @@ commands: - command: | linecoverage=$(head -2 test-results/coverage.xml | grep -Eo 'line-rate="[0-9]+([.][0-9]+)?"' | grep -Eo "[0-9]+([.][0-9]+)?") echo "Line coverage: $linecoverage" - if [[ $linecoverage < 0 ]]; then exit 1; fi + if (( $(echo "$linecoverage < 0.3" | bc -l) )); then exit 1; fi triggers: cancel_old_ci: true expression: |