File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 11GOPATH =$(shell go env GOPATH)
22
3+ all : lint test
4+
35linters-install :
46 @echo " + $@ "
57 @$(GOPATH ) /bin/golangci-lint --version > /dev/null 2>&1 || { \
@@ -12,6 +14,8 @@ lint: linters-install
1214 $(GOPATH ) /bin/golangci-lint run ./...
1315
1416test :
15- GO111MODULE=on go test -cover -race ./...
17+ @echo " + $@ "
18+ GO111MODULE=on go test -covermode=atomic -race ./...
1619
1720.PHONY : test lint linters-install
21+ .DEFAULT_GOAL := all
Original file line number Diff line number Diff line change @@ -274,15 +274,6 @@ func TestJobHooks(t *testing.T) {
274274 filename string
275275 headers http.Header
276276 }{
277- {
278- name : "JobEvent" ,
279- events : []Event {JobEvents },
280- typ : JobEventPayload {},
281- filename : "../testdata/gitlab/job-event.json" ,
282- headers : http.Header {
283- "X-Gitlab-Event" : []string {"Job Hook" },
284- },
285- },
286277 {
287278 name : "JobEvent" ,
288279 events : []Event {JobEvents , BuildEvents },
You can’t perform that action at this time.
0 commit comments