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 1
1
GOPATH =$(shell go env GOPATH)
2
2
3
+ all : lint test
4
+
3
5
linters-install :
4
6
@echo " + $@ "
5
7
@$(GOPATH ) /bin/golangci-lint --version > /dev/null 2>&1 || { \
@@ -12,6 +14,8 @@ lint: linters-install
12
14
$(GOPATH ) /bin/golangci-lint run ./...
13
15
14
16
test :
15
- GO111MODULE=on go test -cover -race ./...
17
+ @echo " + $@ "
18
+ GO111MODULE=on go test -covermode=atomic -race ./...
16
19
17
20
.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) {
274
274
filename string
275
275
headers http.Header
276
276
}{
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
- },
286
277
{
287
278
name : "JobEvent" ,
288
279
events : []Event {JobEvents , BuildEvents },
You can’t perform that action at this time.
0 commit comments