From d7db241a477d037852464f4468fc01bc87ec5f3b Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sat, 4 Jan 2025 18:40:05 +0300 Subject: [PATCH] fixup coverage Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_coverage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/job_coverage.yml b/.gitea/workflows/job_coverage.yml index db51345e..aa281dc2 100644 --- a/.gitea/workflows/job_coverage.yml +++ b/.gitea/workflows/job_coverage.yml @@ -26,11 +26,11 @@ jobs: - name: test coverage run: | - go test -v -cover ./... -coverprofile coverage.out -coverpkg ./... + go test -v -cover ./... -covermode=count -coverprofile coverage.out -coverpkg ./... go tool cover -func coverage.out -o coverage.out - name: coverage badge - uses: tj-actions/coverage-badge-go@v1 + uses: tj-actions/coverage-badge-go@v2 with: green: 80 filename: coverage.out