forked from Trendyol/go-dcp-couchbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 806 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/[email protected]
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/[email protected]
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
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 test/integration && go mod tidy && cd ../..