forked from ogen-go/ogen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 757 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
40
41
42
43
44
test:
@./go.test.sh
.PHONY: test
coverage:
@./go.coverage.sh
.PHONY: coverage
generate:
go generate ./... && go mod tidy
.PHONY: generate
examples:
cd examples && go generate && go mod tidy
.PHONY: examples
test_examples:
cd examples && go test ./...
test_fast:
go test ./...
logo:
inkscape -z -w 512 -h 512 _logo/logo.svg -e _logo/logo.x512.png
inkscape -z -w 256 -h 256 _logo/logo.svg -e _logo/logo.x256.png
tidy:
go mod tidy
tidy_examples:
cd examples && go mod tidy
tidy_all: tidy tidy_examples
lint:
@go version
@golangci-lint version
golangci-lint run -v -c .golangci.yml ./...
clean: tidy_all generate examples
commit_gen:
git add ./examples ./internal/integration/*/*_gen*.go
git commit -m "chore: commit generated files"