From 706f7c84f33f6fd3c63679fe233673cd65ee9cc2 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sun, 2 Aug 2026 04:42:19 -0700 Subject: [PATCH] ci: report test coverage --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 00660b0..be9df46 100644 --- a/Makefile +++ b/Makefile @@ -38,4 +38,5 @@ test: build ci-test: ./scripts/prepare_test_repos.sh $(TMP_DIR) ./scripts/run_foreach_test_repos.sh $(TMP_DIR) "sed -i '2i \ \ \"sandboxExecServer\": \"172.17.0.1:5051\",' conf.json" - GITHUB_ACTOR="" go test -count=1 -v ./... + GITHUB_ACTOR="" go test -count=1 -v -coverpkg=./... -coverprofile=$(COVERAGE_FILE) ./... + go tool cover -func=$(COVERAGE_FILE) | tail -n 1