diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7434f94..fe110b5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -51,7 +51,7 @@ jobs: run: make test - name: Run coverage - run: go test -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v /vendor/ | grep -v /api/) + run: go test -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v /vendor/ | grep -v /api/ | grep -v /cmd/) - name: Upload Coverage report to CodeCov uses: codecov/codecov-action@v3 diff --git a/Makefile b/Makefile index 4c51534..a854685 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL := /bin/bash PROJECT_NAME := "github.com/zhufuyi/sponge" PKG := "$(PROJECT_NAME)" -PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/) +PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/ | grep -v /cmd/) # delete the templates code start .PHONY: install diff --git a/Makefile-for-http b/Makefile-for-http index 33e7f17..d57d464 100644 --- a/Makefile-for-http +++ b/Makefile-for-http @@ -2,7 +2,7 @@ SHELL := /bin/bash PROJECT_NAME := "github.com/zhufuyi/sponge" PKG := "$(PROJECT_NAME)" -PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/) +PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/ | grep -v /cmd/)