Skip to content

Commit 02d7fff

Browse files
committed
ci: modify test config
1 parent ee68541 commit 02d7fff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: make test
5252

5353
- name: Run coverage
54-
run: go test -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v /vendor/ | grep -v /api/)
54+
run: go test -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v /vendor/ | grep -v /api/ | grep -v /cmd/)
5555

5656
- name: Upload Coverage report to CodeCov
5757
uses: codecov/codecov-action@v3

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SHELL := /bin/bash
22

33
PROJECT_NAME := "github.com/zhufuyi/sponge"
44
PKG := "$(PROJECT_NAME)"
5-
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/)
5+
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/ | grep -v /cmd/)
66

77
# delete the templates code start
88
.PHONY: install

Makefile-for-http

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SHELL := /bin/bash
22

33
PROJECT_NAME := "github.com/zhufuyi/sponge"
44
PKG := "$(PROJECT_NAME)"
5-
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/)
5+
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v /api/ | grep -v /cmd/)
66

77

88

0 commit comments

Comments
 (0)