From abf8dae9ec1bcb26576c346bcfaae94db0052c30 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 2 Aug 2024 15:49:14 +0200 Subject: [PATCH] Fix setup syntax --- .github/workflows/smoke-tests.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index b813db8d5c0..30584c66c74 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -31,21 +31,17 @@ jobs: - name: Prepare test directories run: | - # Create a shared vendor directory - mkdir shared_vendor - mv src/vendor shared_vendor/vendor - # Function to create test directory create_test_dir() { local suite=$1 - mkdir ${suite}_tests + cp -R src ${suite}_tests cd ${suite}_tests - # Copy necessary files and directories - cp -R ../src/{app,config,packages,resources,tests,composer.json,composer.lock,phpunit.xml.dist} . + # Remove vendor directory + rm -rf vendor - # Symlink the vendor directory - ln -s ../shared_vendor/vendor vendor + # Create hard link to vendor directory + ln ../src/vendor vendor cd .. }