-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 879 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 879 Bytes
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
.PHONY: test test-cover gen gen-ic fmt
test:
go test -v -cover ./...
test-registry:
REGISTRY_TEST_ENABLE=true go test -v -cover ./clients/registry/...
test-ledger:
LEDGER_TEST_ENABLE=true go test -v -cover ./clients/ledger/...
test-all:
REGISTRY_TEST_ENABLE=true LEDGER_TEST_ENABLE=true go test -v -cover ./...
check-moc:
find ic -type f -name '*.mo' -print0 | xargs -0 $(shell dfx cache show)/moc --check
test-cover:
go test -v -coverprofile=coverage.out ./...
go tool cover -html=coverage.out
gen:
cd candid/internal && go generate
cd certification/http/certexp && go generate
cd clients/ledger && go generate
cd clients/registry && go generate
fmt:
go mod tidy
gofmt -s -w .
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
go run github.com/jdeflander/goarrange@v1.0.0 run -r .
golangci-lint run ./...