fix: create storage dirs before composer install in CI
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Joris Slagter
2025-12-02 22:30:39 +01:00
parent fad3e865cd
commit 07f340cb8f

View File

@@ -10,12 +10,14 @@ steps:
- apt-get update && apt-get install -y libzip-dev
- docker-php-ext-install exif zip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.2.24
# Create .env and directories BEFORE composer install
- cp .env.example .env || echo "APP_KEY=" > .env
- mkdir -p storage/framework/{cache,sessions,views}
- mkdir -p storage/logs
- mkdir -p bootstrap/cache
- composer install --prefer-dist --no-progress --no-interaction
- php artisan key:generate
# Now run composer install with existing storage
- composer install --prefer-dist --no-progress --no-interaction
- composer validate --strict
- echo "✓ Composer validation passed"
# Uncomment when tests are ready: