From 6e6036d36643273a69c3d21a0e6704b6a6310b60 Mon Sep 17 00:00:00 2001 From: Otavio Andrade <56943487+otavio-code@users.noreply.github.com> Date: Sat, 30 Nov 2024 22:57:21 -0300 Subject: [PATCH] Update ci.yaml --- .github/workflows/ci.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 98bb5c2..429b784 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,15 +81,14 @@ jobs: echo "Total Lines: $TOTAL" echo "Coverage Percentage: $PERCENTAGE%" - # Validação da cobertura mínima - MINIMUM=50.0 + # Validação da cobertura mínima (80%) + MINIMUM=80.0 if (( $(echo "$PERCENTAGE < $MINIMUM" | bc -l) )); then echo "Coverage is below the minimum required: $MINIMUM%!" exit 1 fi echo "Coverage validation passed with $PERCENTAGE%." - build: runs-on: ubuntu-latest