From 7bd14dce6a065a413f14e0cd439846029fa00466 Mon Sep 17 00:00:00 2001 From: Kpa-clawbot <259247574+Kpa-clawbot@users.noreply.github.com> Date: Fri, 27 Mar 2026 10:21:59 -0700 Subject: [PATCH] fix: run go tool cover from module directory, not repo root Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aaab9862..5face39d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,7 +47,7 @@ jobs: # Parse server coverage SERVER_COV="0" if [ -f cmd/server/server-coverage.out ]; then - SERVER_COV=$(go tool cover -func=cmd/server/server-coverage.out | tail -1 | grep -oP '[\d.]+(?=%)') + SERVER_COV=$(cd cmd/server && go tool cover -func=server-coverage.out | tail -1 | grep -oP '[\d.]+(?=%)') fi SERVER_COLOR="red" if [ "$(echo "$SERVER_COV >= 80" | bc -l 2>/dev/null)" = "1" ]; then @@ -61,7 +61,7 @@ jobs: # Parse ingestor coverage INGESTOR_COV="0" if [ -f cmd/ingestor/ingestor-coverage.out ]; then - INGESTOR_COV=$(go tool cover -func=cmd/ingestor/ingestor-coverage.out | tail -1 | grep -oP '[\d.]+(?=%)') + INGESTOR_COV=$(cd cmd/ingestor && go tool cover -func=ingestor-coverage.out | tail -1 | grep -oP '[\d.]+(?=%)') fi INGESTOR_COLOR="red" if [ "$(echo "$INGESTOR_COV >= 80" | bc -l 2>/dev/null)" = "1" ]; then