forked from tmc/langgraphgo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 673 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 673 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
25
26
27
28
29
30
# This file contains convenience targets for the project.
# It is not intended to be used as a build system.
# See the README for more information.
.PHONY: test
test:
go test ./...
.PHONY: lint
lint: lint-deps
golangci-lint run --color=always --sort-results ./...
.PHONY: lint-fix
lint-fix:
golangci-lint run --fix --skip-dirs=./exp ./...
.PHONY: test-race
test-race:
go run test -race ./...
.PHONY: test-cover
test-cover:
go run test -cover ./...
.PHONY: lint-deps
lint-deps:
@command -v golangci-lint >/dev/null 2>&1 || { \
echo >&2 "golangci-lint not found. Installing..."; \
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1; \
}