From 4a65b669bd807a132f00fad31eda3fd75ba7577a Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Fri, 12 Jun 2026 12:35:06 +0200 Subject: [PATCH] Fix CI FPM worker config test --- scripts/php-ci-test.sh | 11 ++++++++++- .../Infrastructure/PhpFpmWorkerConfigTest.php | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/scripts/php-ci-test.sh b/scripts/php-ci-test.sh index a6cac1dc..bd71641d 100644 --- a/scripts/php-ci-test.sh +++ b/scripts/php-ci-test.sh @@ -128,7 +128,16 @@ tar \ -C services/nginx/app -cf - . \ | docker compose $compose_files exec -T php1 tar -C /var/www/html -xf - +docker compose $compose_files exec -T php1 sh -lc 'rm -rf /var/www/repo-root && mkdir -p /var/www/repo-root' +tar \ + -cf - \ + Dockerfile \ + Dockerfile.coolify-api \ + services/php/Dockerfile \ + services/php/php-fpm-pool.conf \ + | docker compose $compose_files exec -T php1 tar -C /var/www/repo-root -xf - + composer_install docker compose $compose_files exec -T php1 sh -lc \ - "cd /var/www/html && composer test:ci:$suite" + "cd /var/www/html && PLENO_REPO_ROOT_FOR_TESTS=/var/www/repo-root composer test:ci:$suite" diff --git a/services/nginx/app/tests/Unit/Infrastructure/PhpFpmWorkerConfigTest.php b/services/nginx/app/tests/Unit/Infrastructure/PhpFpmWorkerConfigTest.php index 0d175b80..afe7ae77 100644 --- a/services/nginx/app/tests/Unit/Infrastructure/PhpFpmWorkerConfigTest.php +++ b/services/nginx/app/tests/Unit/Infrastructure/PhpFpmWorkerConfigTest.php @@ -1,10 +1,20 @@