ci: rename postgres hostname, add postgres_url to test run
Some checks failed
Build and Push Docker Image / tests (push) Failing after 34s
Build and Push Docker Image / build (push) Has been skipped

This commit is contained in:
Lars Hampe 2024-10-01 14:18:56 +02:00
parent 8f53f4c675
commit 3f53b112ae

View File

@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }}
on: [workflow_call]
jobs:
build:
test:
runs-on: ubuntu-latest
services:
postgres:
@ -38,7 +38,9 @@ jobs:
- name: Push Database
run: bun run db:push
env:
POSTGRES_URL: postgres://postgres:postgres@localhost:5432/postgres
POSTGRES_URL: postgres://postgres:postgres@postgres:5432/postgres
- name: Test API
run: bun test:api
env:
POSTGRES_URL: postgres://postgres:postgres@postgres:5432/postgres