forked from redpanda-data/benthos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 673 Bytes
/
Makefile
File metadata and controls
32 lines (23 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
31
32
.PHONY: deps test test-race fmt lint
GOMAXPROCS ?= 1
build:
@go build ./cmd/benthos
build-wasm:
@GOOS=js GOARCH=wasm go build -o benthos.wasm ./cmd/benthos
install:
@go install ./cmd/benthos
deps:
@go mod tidy
fmt:
@go list -f {{.Dir}} ./... | xargs -I{} gofmt -w -s {}
@go list -f {{.Dir}} ./... | xargs -I{} goimports -w -local github.com/redpanda-data/benthos/v4 {}
@go mod tidy
lint:
@go vet ./...
@golangci-lint -j $(GOMAXPROCS) run --timeout 5m internal/... public/...
test:
@go test -timeout 3m ./...
@go run ./cmd/benthos template lint $(TEMPLATE_FILES)
@go run ./cmd/benthos test ./config/test/...
test-race:
@go test -timeout 3m -race ./...