Files
ark/Makefile
Pietralberto Mazza 19cbaeba40 Ark encoding (#6)
* Fix naming

* Fix Ark key encoding & Add new encoding for address, relay and url

* Fix submodule name

* Fix test target

* Update go deps

* Fix prefixes && Use bech32m && Encode asp and user keys in address

* Fix tests

* Parametrize ark prefix && Add network params

* Named return values
2023-11-15 17:11:16 +01:00

58 lines
1.2 KiB
Makefile
Executable File

.PHONY: build clean cov help intergrationtest lint run test vet proto proto-lint
## build: build for all platforms
build:
@echo "Building coordinatord binary..."
@bash ./scripts/build
## clean: cleans the binary
clean:
@echo "Cleaning..."
@go clean
## cov: generates coverage report
cov:
@echo "Coverage..."
@go test -cover ./...
## help: prints this help message
help:
@echo "Usage: \n"
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
## intergrationtest: runs integration tests
integrationtest:
@echo "Running integration tests..."
@go test -v -count=1 -race ./... $(go list ./... | grep internal/test)
## lint: lint codebase
lint:
@echo "Linting code..."
@golangci-lint run --fix
## run: run in dev mode
run: clean
@echo "Running coordinatord in dev mode..."
@go run ./cmd/coordinatord
## test: runs unit and component tests
test:
@echo "Running unit tests..."
@find . -name go.mod -execdir go test -v -count=1 -race ./... $(go list ./... | grep -v internal/test) \;
## vet: code analysis
vet:
@echo "Running code analysis..."
@go vet ./...
## proto: compile proto stubs
proto: proto-lint
@echo "Compiling stubs..."
@buf generate
## proto-lint: lint protos
proto-lint:
@echo "Linting protos..."
@buf lint