-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
29 lines (25 loc) · 681 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
.PHONY: install
install:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/golang/protobuf/protoc-gen-go@latest
.PHONY: gen
gen:
# go get github.com/99designs/[email protected]
# go get github.com/vektah/gqlparser/[email protected]
go run github.com/99designs/[email protected] generate
.PHONY: test
test:
@tox --recreate
@tox
.PHONY: changelog
changelog: CHANGELOG.md
sh ./.scripts/generate_changelog.sh
.PHONY: lint
lint:
goimports -local github.com/Laisky/laisky-blog-graphql -w .
go mod tidy
gofmt -s -w .
go vet ./...
golangci-lint run -c .golangci.lint.yml
govulncheck ./...