Update ncc_workflow.yml to include Docker socket volume and create updated docker-compose file with absolute paths
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions

This commit is contained in:
netkas 2025-03-21 19:26:50 -04:00
parent d1ea59c061
commit eda91fa1cb
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -279,6 +279,8 @@ jobs:
runs-on: ubuntu-latest
container:
image: php:8.3
volumes:
- /var/run/docker.sock:/var/run/docker.sock
if: needs.check-phpunit.outputs.phpunit-exists == 'true'
steps:
@ -360,6 +362,19 @@ jobs:
# Prepare the environment
chmod -R 777 tests/docker
# Create a new docker-compose file with absolute paths
cat docker-compose.test.yml | sed "s|- \./tests/docker/|- $WORKSPACE_PATH/tests/docker/|g" > docker-compose.test.updated.yml
# Verify the changes
echo "Original volume path entries:"
grep -A 2 "volumes:" docker-compose.test.yml | head -10
echo "Updated volume path entries:"
grep -A 2 "volumes:" docker-compose.test.updated.yml | head -10
# Use the updated docker-compose file for subsequent steps
cp docker-compose.test.updated.yml docker-compose.test.yml
# Prepare phpunit
wget https://phar.phpunit.de/phpunit-11.3.phar
docker-compose -f docker-compose.test.yml up -d