Skip to content

Commit

Permalink
Update GitHub Actions workflow to enhance testing setup
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
ivangrynenko committed Jan 22, 2025
1 parent e0d5e55 commit 984916d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 984916d

Please sign in to comment.