Compare commits

...

2 Commits

Author SHA1 Message Date
Jon Leopard
6db9512a4b chore: trigger CI build 2025-11-20 21:08:30 -07:00
Jon Leopard
ac9ab7e257 fix: use existing testing database for seeder validation
The psql command is not available in the Laravel test runner image.
Instead, reuse the existing 'testing' database - migrate:fresh will
drop and recreate all tables anyway, so there's no conflict.
2025-11-20 21:06:15 -07:00

View File

@@ -143,7 +143,7 @@ steps:
DB_CONNECTION: pgsql
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: seeder_validation
DB_DATABASE: testing
DB_USERNAME: testing
DB_PASSWORD: testing
CACHE_STORE: array
@@ -153,8 +153,6 @@ steps:
- echo "Validating seeders (matches K8s init container)..."
- cp .env.example .env
- php artisan key:generate
- echo "Creating seeder_validation database..."
- PGPASSWORD=testing psql -h postgres -U testing -d testing -c "CREATE DATABASE seeder_validation;"
- echo "Running migrate:fresh --seed with APP_ENV=development..."
- php artisan migrate:fresh --seed --force
- echo "✅ Seeder validation complete!"