From f76293aabe73da1c2893b3b90ce166c6e9be868c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:24:19 +0000 Subject: [PATCH 1/2] Initial plan From a229a64acc6098215469fbb287d7e03fb06a3724 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:33:42 +0000 Subject: [PATCH 2/2] Fix make codecept build executing build target unintentionally Co-authored-by: samdark <47294+samdark@users.noreply.github.com> --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ad8d66a9..4b68c03d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .DEFAULT_GOAL := help CLI_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) -$(eval $(CLI_ARGS):;@:) +$(eval $(filter-out build,$(CLI_ARGS)):;@:) include docker/.env @@ -23,7 +23,12 @@ DOCKER_COMPOSE_TEST := docker compose -f docker/compose.yml -f docker/test/compo # build: ## Build docker images +ifneq ($(filter codecept yii,$(MAKECMDGOALS)),) + @echo "Skipping build target when called with codecept or yii" +else $(DOCKER_COMPOSE_DEV) build $(CLI_ARGS) +endif +.PHONY: build up: ## Up the dev environment $(DOCKER_COMPOSE_DEV) up -d --remove-orphans @@ -62,6 +67,7 @@ test-coverage: codecept: ## Run Codeception $(DOCKER_COMPOSE_TEST) run --rm app ./vendor/bin/codecept $(CLI_ARGS) +.PHONY: codecept psalm: ## Run Psalm $(DOCKER_COMPOSE_DEV) run --rm app ./vendor/bin/psalm $(CLI_ARGS) @@ -89,3 +95,7 @@ prod-deploy: ## PROD | Deploy to production # Output the help for each task, see https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html help: ## This help. @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) + +# Catch-all rule to prevent "No rule to make target" errors +%: + @: