Skip to content

Commit

Permalink
chore(makefile): add targets for generation and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MR2011 committed Jul 26, 2024
1 parent bed53dd commit 7acf82e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 7acf82e

Please sign in to comment.