From e441288f3d83a19c4e56371ae399d21f52e3ae0d Mon Sep 17 00:00:00 2001 From: Leon Ding Date: Mon, 11 Sep 2023 00:51:34 +0800 Subject: [PATCH] chore: add codacy coverage. --- .github/workflows/codacy.yml | 2 +- .gitignore | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml index bf1822d..c695842 100644 --- a/.github/workflows/codacy.yml +++ b/.github/workflows/codacy.yml @@ -25,7 +25,7 @@ jobs: run: go build -v ./... - name: Test Coverage - run: ./test.sh 4 + run: go test ./... -race -coverprofile=coverage.out -covermode=atomic -v - name: Codacy Coverage Reporter uses: codacy/codacy-coverage-reporter-action@v1 diff --git a/.gitignore b/.gitignore index 325f2ea..3f5a0a2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ ./cmd/vasedb vasedb _temp +coverage.out # Test binary, built with `go test -c` *.test