fix(pipeline): Use non-conflicted port for testcontainers testing

This commit is contained in:
2025-11-20 08:50:36 +01:00
parent b20e80ac5e
commit 1931ff7157
3 changed files with 3 additions and 21 deletions

View File

@@ -121,21 +121,6 @@ jobs:
env:
RUNNER_TOOL_CACHE: /toolcache
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: legalconsenthub_test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
ports:
- 5433:5432
options: >-
--health-cmd "pg_isready -U test"
--health-interval 10s
--health-timeout 5s
--health-retries 5
defaults:
run:
working-directory: ./legalconsenthub-backend
@@ -173,10 +158,7 @@ jobs:
- name: Run tests
run: ./gradlew test
env:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5433/legalconsenthub_test
SPRING_DATASOURCE_USERNAME: test
SPRING_DATASOURCE_PASSWORD: test
SPRING_JPA_HIBERNATE_DDL_AUTO: create-drop
SPRING_PROFILES_ACTIVE: testcontainers
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

View File

@@ -2,4 +2,4 @@
## Pipeline Triggering
Trigger count: 8
Trigger count: 9

View File

@@ -2,4 +2,4 @@
## Pipeline Triggering
Trigger count: 8
Trigger count: 9