-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
33 lines (25 loc) · 900 Bytes
/
Makefile
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
33
.PHONY: default
default: init
init:
go install github.com/golangci/golangci-lint/cmd/[email protected]
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/[email protected]
clean:
rm -rf ./build
linter:
fieldalignment -fix ./...
golangci-lint run -c .golangci.yml --timeout=5m -v --fix
lint:
golangci-lint run -c .golangci.yml --timeout=5m -v
test:
go test ./... -bench . -benchmem
compose:
docker compose up --wait --build --force-recreate --remove-orphans
tidy:
go mod tidy
cd example/default-mapper && go mod tidy && cd ../..
cd example/simple && go mod tidy && cd ../..
cd example/simple-logger && go mod tidy && cd ../..
cd example/struct-config && go mod tidy && cd ../..
cd example/grafana && go mod tidy && cd ../..
cd example/simple-rejection-log-sink-response-handler && go mod tidy && cd ../..
cd test/integration && go mod tidy && cd ../..