Skip to content

Commit

Permalink
Optimize directory setup
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Aug 2, 2024
1 parent 27c15e3 commit e3b622c
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,31 @@ 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
cd ${suite}_tests
# Copy necessary files and directories
cp -R ../src/{app,config,packages,resources,tests,composer.json,composer.lock,phpunit.xml.dist} .
# Symlink the vendor directory
ln -s ../shared_vendor/vendor vendor
cd ..
}
# Create test directories for each suite
for suite in unit feature_hyde feature_framework publications realtime_compiler; do
cp -R src ${suite}_tests
create_test_dir $suite
done
# Move .git directory to the root of the working directory
mv src/.git .
- name: Execute Tests in Parallel
Expand Down

0 comments on commit e3b622c

Please sign in to comment.