fix: reorder CI steps — env before composer, key after
This commit is contained in:
parent
2691bf172c
commit
d48b508ab3
1 changed files with 4 additions and 6 deletions
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
|
@ -69,9 +69,7 @@ jobs:
|
|||
restore-keys: ${{ runner.os }}-composer-
|
||||
|
||||
- name: Prepare environment
|
||||
run: |
|
||||
cp .env.ci .env
|
||||
php artisan key:generate || true
|
||||
run: cp .env.ci .env
|
||||
|
||||
- name: Install Composer dependencies
|
||||
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||
|
|
@ -79,12 +77,12 @@ jobs:
|
|||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Generate application key
|
||||
run: php artisan key:generate
|
||||
|
||||
- name: Build assets
|
||||
run: npm run build
|
||||
|
||||
- name: Clear Config
|
||||
run: php artisan config:clear
|
||||
|
||||
- name: Run migrations
|
||||
run: php artisan migrate --force
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue