File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 18
18
go-version : ${{ matrix.go }}
19
19
- run : go mod download
20
20
- run : go build
21
- - run : make lint
21
+ - uses : golangci/golangci-lint-action@v7
22
+ with :
23
+ version : v2.0.2
22
24
- run : make test test-race
Original file line number Diff line number Diff line change 7
7
8
8
TOOL_INSTALL := env GOBIN=$(PWD ) /$(BIN ) go install
9
9
10
+ TEST_FLAGS := --rerun-fails --packages=./... --format testname -- -v
11
+
10
12
$(BIN ) /golangci-lint : Makefile | $(BIN )
11
13
wget -qO- https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b bin v2.0.2
12
14
@@ -33,13 +35,13 @@ docs: $(BIN)/godoc
33
35
$< -http=127.0.0.1:6060
34
36
35
37
test : $(BIN ) /gotestsum
36
- GOEXPERIMENT=synctest $< --format testname -- -v ./...
38
+ GOEXPERIMENT=synctest $< $( TEST_FLAGS ) ./...
37
39
38
40
test-race : $(BIN ) /gotestsum
39
- GOEXPERIMENT=synctest $< --format testname -- -v -race ./...
41
+ GOEXPERIMENT=synctest $< $( TEST_FLAGS ) -- -race ./...
40
42
41
43
test-watch : $(BIN ) /gotestsum
42
- GOEXPERIMENT=synctest $< --watch --format testname -- -v ./...
44
+ GOEXPERIMENT=synctest $< --watch $( TEST_FLAGS ) ./...
43
45
44
46
update-benchmarks :
45
47
go -C benchmarks/ test -v -bench=. -count=10 | tee compare.txt
You can’t perform that action at this time.
0 commit comments