-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMakefile
35 lines (27 loc) · 962 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
34
35
.PHONY: default
default: run
init:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@v0.15.0
clean:
rm -rf ./build
rm -rf mocks
linter:
fieldalignment -fix ./...
golangci-lint run -c .golangci.yml --timeout=5m -v --fix
lint:
golangci-lint run -c .golangci.yml --timeout=5m -v
run:
go run main.go
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/simple-sink-response-handler && go mod tidy && cd ../..
cd example/simple-rejection-log-sink-response-handler && go mod tidy && cd ../..
cd example/struct-config && go mod tidy && cd ../..
cd example/grafana && go mod tidy && cd ../..
cd test/integration && go mod tidy && cd ../..