ci: fix postgres hostname for docker service networking
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: memento-note
|
working-directory: memento-note
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: "postgresql://memento_test:memento_test@localhost:5432/memento_test"
|
DATABASE_URL: "postgresql://memento_test:memento_test@postgres:5432/memento_test"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -51,8 +51,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup test database
|
- name: Setup test database
|
||||||
run: |
|
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
|
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
|
- name: Lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|||||||
Reference in New Issue
Block a user