ci: use hostname and port
All checks were successful
Test / build (push) Successful in 57s

This commit is contained in:
Lars Hampe 2024-10-01 18:24:19 +02:00
parent 6b6097c7ad
commit 2381ca5794

View File

@ -24,7 +24,7 @@ jobs:
--health-timeout 5s
--health-retries 5
ports:
- 5432/tcp
- 5432:5432
steps:
- name: docker ps
run: docker ps
@ -49,9 +49,9 @@ jobs:
- name: Push Database - Test
run: bun run db:push
env:
POSTGRES_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
POSTGRES_URL: postgres://postgres:postgres@postgres:5432/postgres
- name: Test API
run: bun test:api
env:
POSTGRES_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
POSTGRES_URL: postgres://postgres:postgres@postgres:5432/postgres