mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2025-10-30 05:53:45 +03:00
[hw-3] loms service
This commit is contained in:
11
Makefile
11
Makefile
@@ -6,6 +6,8 @@ include make/generate.mk
|
||||
PKGS = $(shell go list ./... | grep -vE 'mock|config|generated|header|document|internal/pb')
|
||||
INTEGRATION_TAG = integration
|
||||
|
||||
.PHONY: lint, coverage
|
||||
|
||||
lint: cart-lint loms-lint notifier-lint comments-lint
|
||||
|
||||
build: cart-build loms-build notifier-build comments-build
|
||||
@@ -13,15 +15,20 @@ build: cart-build loms-build notifier-build comments-build
|
||||
coverage: cart-coverage loms-coverage notifier-coverage comments-coverage
|
||||
|
||||
generate: cart-generate loms-generate notifier-generate comments-generate
|
||||
cd pkg && go mod tidy
|
||||
|
||||
run-all:
|
||||
echo "starting build"
|
||||
docker-compose up --build
|
||||
|
||||
.PHONY: .integration-test
|
||||
integration-test:
|
||||
ALLURE_OUTPUT_PATH=$(shell pwd) go test -v -tags=$(INTEGRATION_TAG) ./cart/tests/integration
|
||||
ALLURE_OUTPUT_PATH=$(shell pwd)/allure-results ALLURE_OUTPUT_FOLDER=cart go test -v -tags=$(INTEGRATION_TAG) ./cart/tests/integration
|
||||
ALLURE_OUTPUT_PATH=$(shell pwd)/allure-results ALLURE_OUTPUT_FOLDER=loms go test -v -tags=$(INTEGRATION_TAG) ./loms/tests/integration
|
||||
|
||||
bench:
|
||||
go test -bench=BenchmarkInMemoryRepository -benchmem ./cart/internal/domain/cart/repository -benchtime 3s
|
||||
|
||||
.PHONY: lint, coverage
|
||||
.PHONY: .serve-swagger
|
||||
.serve-swagger:
|
||||
bin/swagger serve api/openapiv2/loms/v1/loms.swagger.json --no-open
|
||||
|
||||
Reference in New Issue
Block a user