From 05131689a63930a572e71b819637d37db964034b Mon Sep 17 00:00:00 2001 From: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Date: Wed, 15 Apr 2026 06:36:01 +0000 Subject: [PATCH] chore: update --- .gitea/workflows/test.yaml | 14 ++++++++++++-- .../src/main/resources/application.properties | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index d2b7095..8e37027 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -43,9 +43,19 @@ jobs: env: TESTCONTAINERS_RYUK_DISABLED: "true" run: | - ./scripts/gen-it.sh && \ + # 1. Tạo mạng Docker nếu chưa tồn tại + docker network create ${DOCKER_NET} || true + + docker run -d --name postgres-it --network ${DOCKER_NET} postgres + docker run -d --name redis-it --network ${DOCKER_NET} redis + + ./scripts/gen-it.sh + ./mvnw -B verify \ - -Dquarkus.container-image.push=false + -Dquarkus.container-image.push=false \ + -Dquarkus.test.container.network=${DOCKER_NET} \ + -Dquarkus.datasource.jdbc.url=jdbc:postgresql://postgres-it:5432/postgres \ + -Dquarkus.redis.hosts=redis://redis-it:6379 - name: Test Summary uses: test-summary/action@v2 diff --git a/account-service/src/main/resources/application.properties b/account-service/src/main/resources/application.properties index 3964779..d3bf6e9 100644 --- a/account-service/src/main/resources/application.properties +++ b/account-service/src/main/resources/application.properties @@ -1,7 +1,7 @@ # Database quarkus.datasource.db-kind=postgresql quarkus.datasource.username=postgres -quarkus.datasource.password=password +quarkus.datasource.password= quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/postgres quarkus.hibernate-orm.database.generation=update