From 7acf82e40b3083ac168ffdee99bc57ad72218cd1 Mon Sep 17 00:00:00 2001 From: Michael Reimsbach Date: Fri, 26 Jul 2024 14:27:22 +0200 Subject: [PATCH] chore(makefile): add targets for generation and testing --- Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 865a4dc0..b75f2a94 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ VERSION ?= $(shell git log -1 --pretty=format:"%H") OS := $(shell go env GOOS) ARCH := $(shell go env GOARCH) -.PHONY: all test doc +.PHONY: all test doc gqlgen test-all test-e2e test-app test-db # Source the .env file to use the env vars with make -include .env @@ -47,3 +47,21 @@ push: run: go run cmd/heureka/main.go + +gqlgen: + cd internal/api/graphql && go run github.com/99designs/gqlgen generate + +mockery: + mockery + +test-all: + ginkgo -r + +test-e2e: + ginkgo internal/e2e + +test-app: + ginkgo internal/app + +test-db: + ginkgo internal/database/mariadb \ No newline at end of file