-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 897 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
36
37
38
39
all: fmt check build
build:
go build -o bd-api
fmt:
gci write . --skip-generated -s standard -s default
gofumpt -l -w .
check: lint_golangci static
lint_golangci:
@golangci-lint run --timeout 3m ./...
fix: fmt
@golangci-lint run --fix
static:
@staticcheck -go 1.22 ./...
check_deps:
go install github.com/cosmtrek/air@v1.51.0
go install github.com/nicksnyder/go-i18n/v2/goi18n@v2.4.0
go install github.com/golang-migrate/migrate/v4
go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.25.0
go install github.com/daixiang0/gci@v0.13.1
go install mvdan.cc/gofumpt@v0.6.0
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.0
go install honnef.co/go/tools/cmd/staticcheck@v0.4.7
go install github.com/goreleaser/goreleaser@v1.24.0
dev_db:
docker-compose --file docker-compose-dev.yml up --force-recreate -V postgres
test:
go test ./...
update:
go get -u ./...