fix: create storage dirs before composer install in CI
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -10,12 +10,14 @@ steps:
|
|||||||
- apt-get update && apt-get install -y libzip-dev
|
- apt-get update && apt-get install -y libzip-dev
|
||||||
- docker-php-ext-install exif zip
|
- docker-php-ext-install exif zip
|
||||||
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.2.24
|
- 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
|
- cp .env.example .env || echo "APP_KEY=" > .env
|
||||||
- mkdir -p storage/framework/{cache,sessions,views}
|
- mkdir -p storage/framework/{cache,sessions,views}
|
||||||
- mkdir -p storage/logs
|
- mkdir -p storage/logs
|
||||||
- mkdir -p bootstrap/cache
|
- mkdir -p bootstrap/cache
|
||||||
- composer install --prefer-dist --no-progress --no-interaction
|
|
||||||
- php artisan key:generate
|
- php artisan key:generate
|
||||||
|
# Now run composer install with existing storage
|
||||||
|
- composer install --prefer-dist --no-progress --no-interaction
|
||||||
- composer validate --strict
|
- composer validate --strict
|
||||||
- echo "✓ Composer validation passed"
|
- echo "✓ Composer validation passed"
|
||||||
# Uncomment when tests are ready:
|
# Uncomment when tests are ready:
|
||||||
|
|||||||
Reference in New Issue
Block a user