You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@echo running integrational tests with docker and db
go test ./tests/... -count 1
build:
@echo build app
go build -o app cmd/main.go
lint:
@echo check linter version
if [[ $$(golangci-lint --version |awk '{print $$4}') == $(GOLANGCI_LINT_VERSION) ]]; then echo "current installed version is actual to $(GOLANGCI_LINT_VERSION)"; else echo "current version is not actual, please use $(GOLANGCI_LINT_VERSION)"; exit 1; fi
@echo running linter
golangci-lint run -v
lint-check-version:
@echo check linter version
@if [[ $(GO_LINT) == v$(GOLANGCI_LINT_VERSION) ]]; then echo "current installed version is actual to $(GOLANGCI_LINT_VERSION)"; else echo "current version $(GO_LINT) is not actual, please use $(GOLANGCI_LINT_VERSION)"; exit 1; fi
migrate-up:
@echo starting migrations
@migrate -database $(SD_DB) -path db/migrations up 1
migrate-down:
@echo revert migrations
migrate -database $(SD_DB) -path db/migrations down 1