Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d028917

Browse files
committedApr 2, 2025··
Improvements to CI
1 parent 3b073cc commit d028917

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
 

‎.github/workflows/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ jobs:
1818
go-version: ${{ matrix.go }}
1919
- run: go mod download
2020
- run: go build
21-
- run: make lint
21+
- uses: golangci/golangci-lint-action@v7
22+
with:
23+
version: v2.0.2
2224
- run: make test test-race

‎Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ $(BIN):
77

88
TOOL_INSTALL := env GOBIN=$(PWD)/$(BIN) go install
99

10+
TEST_FLAGS := --rerun-fails --packages=./... --format testname -- -v
11+
1012
$(BIN)/golangci-lint: Makefile | $(BIN)
1113
wget -qO- https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b bin v2.0.2
1214

@@ -33,13 +35,13 @@ docs: $(BIN)/godoc
3335
$< -http=127.0.0.1:6060
3436

3537
test: $(BIN)/gotestsum
36-
GOEXPERIMENT=synctest $< --format testname -- -v ./...
38+
GOEXPERIMENT=synctest $< $(TEST_FLAGS) ./...
3739

3840
test-race: $(BIN)/gotestsum
39-
GOEXPERIMENT=synctest $< --format testname -- -v -race ./...
41+
GOEXPERIMENT=synctest $< $(TEST_FLAGS) -- -race ./...
4042

4143
test-watch: $(BIN)/gotestsum
42-
GOEXPERIMENT=synctest $< --watch --format testname -- -v ./...
44+
GOEXPERIMENT=synctest $< --watch $(TEST_FLAGS) ./...
4345

4446
update-benchmarks:
4547
go -C benchmarks/ test -v -bench=. -count=10 | tee compare.txt

0 commit comments

Comments
 (0)
Please sign in to comment.