diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 24d1b95..d5f0898 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -347,11 +347,11 @@ jobs: if [ -f coverage.out ]; then COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | sed 's/%//') echo "Total coverage: $COVERAGE%" - if [ "$(echo "$COVERAGE < 50" | bc)" -eq 1 ]; then - echo "FAIL: Coverage $COVERAGE% is below 50% threshold" + if [ "$(echo "$COVERAGE < 100" | bc)" -eq 1 ]; then + echo "FAIL: Coverage $COVERAGE% is below 100% threshold" exit 1 fi - echo "PASS: Coverage $COVERAGE% meets 50% threshold" + echo "PASS: Coverage $COVERAGE% meets 100% threshold" else echo "No coverage file generated (prod build)" fi @@ -429,6 +429,7 @@ jobs: vulns: name: Go vulnerabilities + needs: [go-build] runs-on: ubuntu-latest defaults: run: