fix test errors
API CI/CD / Validate (composer + pint) (push) Successful in 2m47s
API CI/CD / Test (PHPUnit) (push) Failing after 3m8s
API CI/CD / Build frontend assets (push) Failing after 5m22s
API CI/CD / Security audit (push) Failing after 34s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 2m47s
API CI/CD / Test (PHPUnit) (push) Failing after 3m8s
API CI/CD / Build frontend assets (push) Failing after 5m22s
API CI/CD / Security audit (push) Failing after 34s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -19,7 +19,7 @@ on:
|
||||
env:
|
||||
APP_ENV: testing
|
||||
APP_DEBUG: false
|
||||
APP_KEY: ""
|
||||
APP_KEY: base64:MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=
|
||||
LOG_CHANNEL: stderr
|
||||
LOG_LEVEL: debug
|
||||
DB_CONNECTION: sqlite
|
||||
@@ -146,7 +146,7 @@ jobs:
|
||||
cat > .env <<'EOF'
|
||||
APP_NAME=school_api
|
||||
APP_ENV=testing
|
||||
APP_KEY=
|
||||
APP_KEY=base64:MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=
|
||||
APP_DEBUG=false
|
||||
APP_URL=http://localhost
|
||||
LOG_CHANNEL=stderr
|
||||
@@ -159,13 +159,11 @@ jobs:
|
||||
QUEUE_CONNECTION=sync
|
||||
MAIL_MAILER=array
|
||||
FILESYSTEM_DISK=local
|
||||
JWT_SECRET=ci_test_jwt_secret_not_for_production
|
||||
JWT_SECRET=testing_jwt_secret_ci_not_for_production_32b
|
||||
EOF
|
||||
mkdir -p database storage/framework/cache storage/framework/sessions \
|
||||
storage/framework/views storage/logs bootstrap/cache reports
|
||||
touch database/database.sqlite
|
||||
php artisan key:generate --force
|
||||
php artisan jwt:secret --force || true
|
||||
|
||||
- name: Run database migrations
|
||||
run: php artisan migrate:fresh --force
|
||||
|
||||
Reference in New Issue
Block a user