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