Skip to content

Commit 7e70f3e

Browse files
committed
fix: improve composer install step to check for vendor directory
1 parent 10cac1a commit 7e70f3e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pr-preview.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ jobs:
3434
- name: Install dependencies
3535
run: |
3636
if [ -f "composer.json" ]; then
37-
composer install --no-dev --no-interaction --prefer-dist
37+
if [ ! -d "vendor" ]; then
38+
echo "No vendor directory found. Running composer install..."
39+
composer install --no-dev --no-interaction --prefer-dist
40+
else
41+
echo "Vendor directory already exists. Skipping composer install."
42+
fi
3843
fi
3944
if [ -f "package.json" ]; then
4045
npm ci

0 commit comments

Comments
 (0)