From 615124f2866a8fe9de657d5d809ca13d08a64b18 Mon Sep 17 00:00:00 2001 From: LSP-Dev Date: Sat, 2 May 2026 21:33:53 +0200 Subject: [PATCH] fix(ci): composer install mit --no-scripts (package:discover braucht .env) --- .github/workflows/ci.yml | 19 +++++++++++++------ ...5_01_063113_create_notifications_table.php | 2 ++ tests/Unit/.gitkeep | 0 3 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 tests/Unit/.gitkeep diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05fbb94..65eac0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.3' + php-version: '8.4' extensions: pdo_sqlite, sqlite3, sodium, openssl, mbstring, intl tools: composer:v2 coverage: none @@ -34,7 +34,13 @@ jobs: restore-keys: composer- - name: Install dependencies - run: composer install --no-progress --prefer-dist --no-interaction + run: composer install --no-progress --prefer-dist --no-interaction --no-scripts + + - name: Prepare app (PHPStan boot-tet Laravel und braucht .env + storage-Pfade) + run: | + cp .env.example .env + mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache + php artisan key:generate --ansi - name: Pint (Code-Style) run: vendor/bin/pint --test @@ -51,7 +57,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.3' + php-version: '8.4' extensions: pdo_sqlite, sqlite3, sodium, openssl, mbstring, intl tools: composer:v2 coverage: none @@ -64,12 +70,13 @@ jobs: restore-keys: composer- - name: Install dependencies - run: composer install --no-progress --prefer-dist --no-interaction + run: composer install --no-progress --prefer-dist --no-interaction --no-scripts - name: Prepare app run: | - cp .env.example .env || true - php artisan key:generate --ansi || true + cp .env.example .env + mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache + php artisan key:generate --ansi - name: Run PHPUnit run: vendor/bin/phpunit --no-coverage diff --git a/database/migrations/2026_05_01_063113_create_notifications_table.php b/database/migrations/2026_05_01_063113_create_notifications_table.php index d738032..1f148f6 100644 --- a/database/migrations/2026_05_01_063113_create_notifications_table.php +++ b/database/migrations/2026_05_01_063113_create_notifications_table.php @@ -1,5 +1,7 @@