mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
[debug]
This commit is contained in:
parent
eea2847d15
commit
3832ca0fb3
2 changed files with 8 additions and 2 deletions
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
|
@ -21,7 +21,7 @@ jobs:
|
|||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
php-version: 8.1
|
||||
tools: composer:v2
|
||||
extensions: pdo_sqlite
|
||||
- name: Install PHP dependencies
|
||||
|
|
|
@ -6,6 +6,7 @@ use App\Console\Kernel;
|
|||
use App\Models\User;
|
||||
use Illuminate\Contracts\Console\Kernel as Artisan;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Throwable;
|
||||
|
||||
trait CreatesApplication
|
||||
{
|
||||
|
@ -28,7 +29,12 @@ trait CreatesApplication
|
|||
|
||||
private function prepareForTests(): void
|
||||
{
|
||||
$this->artisan->call('migrate');
|
||||
try {
|
||||
$this->artisan->call('migrate');
|
||||
} catch (Throwable $e) {
|
||||
\Log::error($e); // @phpcs:ignore
|
||||
throw $e;
|
||||
}
|
||||
|
||||
if (!User::count()) {
|
||||
$this->artisan->call('db:seed');
|
||||
|
|
Loading…
Reference in a new issue