Skip to content

Commit

Permalink
use logs/laravel.log as output for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rikmeijer committed Jul 9, 2024
1 parent f1492f1 commit 280c6e8
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 280c6e8

Please sign in to comment.