File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ jobs:
184
184
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
185
185
make ut
186
186
187
+ - uses : shogo82148/actions-goveralls@v1
188
+ with :
189
+ path-to-profile : profile.cov
190
+
187
191
- name : Install golangci-lint
188
192
run : |
189
193
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VERSION
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ test/**/*.test
44
44
* .html
45
45
cover.out
46
46
cover.html
47
+ profile.cov
47
48
kube-ovn-app-sa.yaml
48
49
kube-ovn-cni-sa.yaml
49
50
kube-ovn-sa.yaml
Original file line number Diff line number Diff line change @@ -1055,7 +1055,7 @@ scan:
1055
1055
.PHONY : ut
1056
1056
ut :
1057
1057
ginkgo -mod=mod --show-node-events --poll-progress-after=60s $(GINKGO_OUTPUT_OPT ) -v test/unittest
1058
- go test . /pkg/...
1058
+ go test -coverprofile=profile.cov $$( go list . /pkg/... | grep -vw '^github.com/kubeovn/kube-ovn/pkg/client' )
1059
1059
1060
1060
.PHONY : ovs-sandbox
1061
1061
ovs-sandbox : clean-ovs-sandbox
You can’t perform that action at this time.
0 commit comments