File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1- name : ci
1+ name : ci-v2
22
33on :
44 push :
8787 run : |
8888 make unit
8989
90+ - name : Upload test coverage
91+ uses : codecov/codecov-action@v5
92+ with :
93+ flags : unittest
94+ token : ${{ secrets.CODECOV_TOKEN }}
95+ verbose : true
96+ files : ./coverage.txt
97+
9098 verify :
9199 runs-on : ubuntu-24.04
92100 steps :
Original file line number Diff line number Diff line change @@ -116,7 +116,9 @@ lint: bin/golangci-lint
116116
117117.PHONY : unit
118118unit :
119- go test $$(go list -e ./... | grep -v tools | grep -v tests )
119+ go test $$(go list -e ./... | grep -v cmd | grep -v tools | grep -v tests | grep -v third_party ) \
120+ -cover -coverprofile=coverage.txt -covermode=atomic
121+ sed -i.bak ' /generated/d' coverage.txt && rm coverage.txt.bak
120122
121123.PHONY : check
122124check : lint unit verify
You can’t perform that action at this time.
0 commit comments