From 2a56a92c59b3610eedbe47e529cd1a4feaaf14a0 Mon Sep 17 00:00:00 2001 From: Zhenghao Zhang Date: Sat, 7 Dec 2024 17:02:58 +0800 Subject: [PATCH] ci: add `-coverpkg` flag --- .github/workflows/build_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 89deb6cad..c1ff08a7b 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -93,7 +93,7 @@ jobs: uses: actions/checkout@v2 - name: Test - run: go test -timeout 20m -v ./... -coverprofile=coverage.txt -covermode=atomic + run: go test -timeout 20m -v ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... env: # MySQL MYSQL_URI: mysql://root:password@tcp(localhost:${{ job.services.mysql.ports[3306] }})/