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 7f11fa1 commit 07522a1
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,29 @@ jobs:
- name: Prepare test directories
run: |
# Move .git directory out of src
mv src/.git .
# Create a base test directory
mkdir base_test
# Move essential files and directories
mv src/{composer.json,composer.lock,vendor,tests} base_test/
# Create symlinks for other directories
for dir in src/*; do
if [ -d "$dir" ]; then
ln -s "../src/$(basename $dir)" "base_test/$(basename $dir)"
fi
done
# Create test suite directories
for suite in unit feature_hyde feature_framework publications realtime_compiler; do
cp -R src ${suite}_tests
cp -R base_test ${suite}_tests
done
mv src/.git .
# Clean up
rm -rf base_test
- name: Execute Tests in Parallel
run: |
Expand Down

0 comments on commit 07522a1

Please sign in to comment.