ci: fix postgres hostname for docker service networking
Some checks failed
CI / Lint, Test & Build (push) Failing after 5m28s
Deploy to Production / Build and Deploy (push) Has been cancelled

This commit is contained in:
Antigravity
2026-05-17 08:14:57 +00:00
parent f3009b9ee2
commit bd214f010e

View File

@@ -31,7 +31,7 @@ jobs:
run:
working-directory: memento-note
env:
DATABASE_URL: "postgresql://memento_test:memento_test@localhost:5432/memento_test"
DATABASE_URL: "postgresql://memento_test:memento_test@postgres:5432/memento_test"
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -51,8 +51,9 @@ jobs:
- name: Setup test database
run: |
apt-get update && apt-get install -y postgresql-client
PGPASSWORD=memento_test psql -h postgres -U memento_test -d memento_test -c "CREATE EXTENSION IF NOT EXISTS vector;"
npx prisma migrate deploy
PGPASSWORD=memento_test psql -h localhost -U memento_test -d memento_test -c "CREATE EXTENSION IF NOT EXISTS vector;"
- name: Lint
run: npm run lint