-
Notifications
You must be signed in to change notification settings - Fork 343
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (20 loc) · 444 Bytes
/
Makefile
File metadata and controls
24 lines (20 loc) · 444 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: test
test:
go test -race ./...
.PHONY: test.build
test.build:
mkdir -p test.out/
for f in $(shell go list ./...); do \
go test -race -c -o test.out/`echo "$$f" | sha256sum | cut -c1-5`-`basename "$$f"` $$f ; \
done
.PHONY: test.run
test.run:
for f in test.out/*; do \
$$f ; \
done
.PHONY: lint
lint:
staticcheck ./...
.PHONY: lint.tools.install
lint.tools.install:
go install honnef.co/go/tools/cmd/staticcheck@2025.1.1