File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 - run : make vet
3131 - run : make staticcheck
3232 - run : make checkgenerate
33- - run : make test
33+ - run : make test GO_TEST_FLAGS='-coverprofile=coverage.txt -covermode=atomic'
34+ - run :
35+ name : Uploading coverage report
36+ command : |
37+ bash <(curl -s https://codecov.io/bash)
3438 - save_cache :
3539 name : Saving GOCACHE
3640 key : flux-gocache-{{ .Branch }}-{{ .Revision }}
Original file line number Diff line number Diff line change 55.vscode
66.vs
77.tern-project
8+ /coverage.txt
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ GO_ARGS=-tags '$(GO_TAGS)'
1919export GOOS =$(shell go env GOOS)
2020export GO_BUILD =env GO111MODULE=on go build $(GO_ARGS )
2121export GO_TEST =env GO111MODULE=on go test $(GO_ARGS )
22+ export GO_TEST_FLAGS =
2223# Do not add GO111MODULE=on to the call to go generate so it doesn't pollute the environment.
2324export GO_GENERATE =go generate $(GO_ARGS )
2425export GO_VET =env GO111MODULE=on go vet $(GO_ARGS )
@@ -58,7 +59,7 @@ staticcheck:
5859 GO111MODULE=on go run honnef.co/go/tools/cmd/staticcheck ./...
5960
6061test :
61- $(GO_TEST ) ./...
62+ $(GO_TEST ) $( GO_TEST_FLAGS ) ./...
6263
6364test-race :
6465 $(GO_TEST ) -race -count=1 ./...
You can’t perform that action at this time.
0 commit comments