This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user