fix: copy .env.ci before composer install in CI

This commit is contained in:
Paulo Castellano 2026-03-31 12:07:15 -03:00
parent 35c88e798a
commit 2691bf172c

View file

@ -68,6 +68,11 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Prepare environment
run: |
cp .env.ci .env
php artisan key:generate || true
- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
@ -77,11 +82,6 @@ jobs:
- name: Build assets
run: npm run build
- name: Prepare environment
run: |
cp .env.ci .env
php artisan key:generate
- name: Clear Config
run: php artisan config:clear