From 984916d0bd8058892e697c387736659c46014394 Mon Sep 17 00:00:00 2001 From: Ivan Grynenko Date: Wed, 22 Jan 2025 15:32:06 +1100 Subject: [PATCH] Update GitHub Actions workflow to enhance testing setup - Modified the workflow to copy the phpunit.xml file from the .github/drupal directory to the working directory before executing tests, ensuring proper PHPUnit configuration. - Improved visibility of the directory structure by listing files in the .github/drupal directory during the setup process. - Enhanced debug output by displaying the contents of the phpunit.xml file, aiding in troubleshooting and ensuring the correct configuration is used. These changes improve the reliability and clarity of the testing framework, facilitating a smoother testing process for developers. --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8ac6bb..43ff469 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,18 +33,21 @@ jobs: run: | echo "Current directory structure before copy:" pwd - ls -la $GITHUB_WORKSPACE + ls -la $GITHUB_WORKSPACE/.github/drupal echo "phpunit.xml location:" find $GITHUB_WORKSPACE -name phpunit.xml # Copy project files to working directory cp -r $GITHUB_WORKSPACE/. . + # Copy phpunit.xml from .github/drupal + cp $GITHUB_WORKSPACE/.github/drupal/phpunit.xml . + echo "Current directory structure after copy:" pwd ls -la echo "Working directory phpunit.xml:" - find . -name phpunit.xml + cat phpunit.xml # Install dependencies composer install --no-interaction --no-progress