diff --git a/.github/workflows/php-tests.yml b/.github/workflows/php-tests.yml index daa8ada6..e272012b 100644 --- a/.github/workflows/php-tests.yml +++ b/.github/workflows/php-tests.yml @@ -44,10 +44,14 @@ jobs: - name: Run test suite with coverage run: | echo "Configurando cobertura..." - mkdir -p public/coverage + mkdir -p coverage echo "Ejecutando PHPUnit con configuraciĆ³n local..." - XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration phpunit.xml --coverage-html public/coverage || true + XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration phpunit.xml || true + + echo "Copiando reportes a public..." + mkdir -p public/coverage + cp -r coverage/html/* public/coverage/ # Verificar la generaciĆ³n if [ -d "public/coverage" ] && [ -f "public/coverage/index.html" ]; then