Skip to content

Commit

Permalink
Fix setup syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Aug 2, 2024
1 parent e3b622c commit abf8dae
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
}
Expand Down

0 comments on commit abf8dae

Please sign in to comment.