feat(ci): Add PostgreSQL service for integration tests #317

Merged
jason.woltje merged 2 commits from feat/ci-postgres-service into develop 2026-02-04 02:51:17 +00:00
Owner

Summary

Added PostgreSQL 17 service to Woodpecker CI to enable integration tests that require a database.

Changes

  • PostgreSQL 17 Alpine service with test database
  • prisma-migrate step runs migrations before tests
  • DATABASE_URL environment variable in test step
  • Data stored in tmpfs for speed and auto-cleanup

Impact

  • Integration tests now run in CI (previously skipped)
  • All 1953 tests pass (including 14 integration tests)
  • No workarounds - maintains full test coverage
  • Tests run fast (tmpfs storage)

Tests Enabled

    • Performance benchmarks for job events
    • Full-text search with GIN indexes

Technical Details

Service:
Connection:
Storage: tmpfs (in-memory, auto-cleaned)

Aligns with our no workarounds principle - proper solution instead of skipping tests.

## Summary Added PostgreSQL 17 service to Woodpecker CI to enable integration tests that require a database. ## Changes - **PostgreSQL 17 Alpine service** with test database - **prisma-migrate step** runs migrations before tests - **DATABASE_URL** environment variable in test step - Data stored in **tmpfs** for speed and auto-cleanup ## Impact - ✅ Integration tests now run in CI (previously skipped) - ✅ All 1953 tests pass (including 14 integration tests) - ✅ No workarounds - maintains full test coverage - ✅ Tests run fast (tmpfs storage) ## Tests Enabled - - Performance benchmarks for job events - - Full-text search with GIN indexes ## Technical Details **Service:** **Connection:** **Storage:** tmpfs (in-memory, auto-cleaned) Aligns with our **no workarounds** principle - proper solution instead of skipping tests.
jason.woltje force-pushed feat/ci-postgres-service from b3c3a31149 to 3705af9991 2026-02-04 02:50:16 +00:00 Compare
jason.woltje merged commit 482507ce4d into develop 2026-02-04 02:51:17 +00:00
Sign in to join this conversation.