diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index bd0ea12..f102d93 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -22,7 +22,7 @@ jobs: APP_KEY: base64:QJHLNLDn66cw060laj0zlrsVbkhFNTEboQCKU36ALsw= DB_DATABASE: testing DB_CONNECTION: sqlite - LOG_CHANNEL: syslog + LOG_CHANNEL: single steps: - uses: actions/checkout@v4 @@ -34,18 +34,23 @@ jobs: run: composer validate --strict - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache - - name: Create Database + - name: Cache Permissions + run: chmod -R 777 bootstrap/cache + - name: Create storage + working-directory: storage run: | - mkdir -p storage/database - touch storage/database/testing.sqlite + chmod -R 777 + mkdir -p database logs app app/public + touch database/testing.sqlite + touch logs/laravel.log + - name: Create fresh database + run: php artisan migrate:fresh - name: Execute tests (Unit and Feature tests) via PHPUnit run: php artisan test - name: Laraval logs if: ${{ failure() }} - run: cat .env.example + run: cat storage/logs/laravel.log build: