File tree 2 files changed +17
-8
lines changed
2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ _testmain.go
23
23
24
24
* .exe
25
25
26
- coverage.txt
27
- profile.out
28
-
29
- simplest-uncommitted-msg-0.1-jar-with-dependencies.jar
26
+ / bin
27
+ / coverage.txt
28
+ / profile.out
29
+ / output.json
30
30
31
31
.idea
Original file line number Diff line number Diff line change 1
1
default : fmt get update test lint
2
2
3
3
GO := go
4
+ GOBIN := $(shell pwd) /bin
4
5
GOBUILD := CGO_ENABLED=0 $(GO ) build $(BUILD_FLAG )
5
6
GOTEST := $(GO ) test -v -race -coverprofile=profile.out -covermode=atomic
6
7
7
8
FILES := $(shell find . -name '* .go' -type f -not -name '* .pb.go' -not -name '* _generated.go' -not -name '* _test.go')
8
9
TESTS := $(shell find . -name '* .go' -type f -not -name '* .pb.go' -not -name '* _generated.go' -name '* _test.go')
9
10
11
+ $(GOBIN ) /tparse :
12
+ GOBIN=
$(GOBIN ) go install github.com/mfridman/
[email protected]
10
13
get :
11
14
$(GO ) get ./...
12
15
$(GO ) mod verify
23
26
lint :
24
27
GOFLAGS=" -tags=functional" golangci-lint run
25
28
26
- test :
27
- $(GOTEST ) -timeout 2m ./...
29
+ test : $(GOBIN ) /tparse
30
+ $(GOTEST ) -timeout 2m -json ./... \
31
+ | tee output.json | $(GOBIN ) /tparse -follow -all
32
+ [ -z " ${GITHUB_STEP_SUMMARY} " ] \
33
+ || NO_COLOR=1 $(GOBIN ) /tparse -format markdown -file output.json -all > ${GITHUB_STEP_SUMMARY}
28
34
29
35
.PHONY : test_functional
30
- test_functional :
31
- $(GOTEST ) -timeout 12m -tags=functional ./...
36
+ test_functional : $(GOBIN ) /tparse
37
+ $(GOTEST ) -timeout 12m -tags=functional -json ./... \
38
+ | tee output.json | $(GOBIN ) /tparse -follow -all
39
+ [ -z " ${GITHUB_STEP_SUMMARY} " ] \
40
+ || NO_COLOR=1 $(GOBIN ) /tparse -format markdown -file output.json -all > ${GITHUB_STEP_SUMMARY}
You can’t perform that action at this time.
0 commit comments