fix: copy .env.ci before composer install in CI
This commit is contained in:
parent
35c88e798a
commit
2691bf172c
1 changed files with 5 additions and 5 deletions
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue