This reverts commit 2ab62c9cea.
This commit is contained in:
@@ -18,7 +18,7 @@ jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKER_NET: quarkus-it-net
|
||||
DOCKER_NET: "quarkus-it-net"
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
@@ -48,14 +48,19 @@ jobs:
|
||||
POSTGRES_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' postgres-it)
|
||||
REDIS_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' redis-it)
|
||||
|
||||
|
||||
./scripts/gen-it.sh
|
||||
|
||||
./mvnw -B verify \
|
||||
-Dquarkus.test.container.network=${DOCKER_NET} \
|
||||
-Dquarkus.container-image.push=false \
|
||||
-Dquarkus.test.env.QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgres-it:5432/postgres \
|
||||
-Dquarkus.test.env.QUARKUS_REDIS_HOSTS=redis://localhost:6379
|
||||
-Dquarkus.test.container.network=${DOCKER_NET}
|
||||
-Dquarkus.datasource.jdbc.url=jdbc:postgresql://${POSTGRES_IP}:5432/postgres \
|
||||
-Dquarkus.redis.hosts=redis://${REDIS_IP}:6379
|
||||
|
||||
- name: Clean up Docker containers
|
||||
if: always()
|
||||
run: |
|
||||
docker ps -a --filter network=${DOCKER_NET} -q | xargs -r docker rm -f
|
||||
docker network rm ${DOCKER_NET}
|
||||
|
||||
- name: Debug Quarkus Integration Test Logs
|
||||
if: failure()
|
||||
@@ -70,8 +75,8 @@ jobs:
|
||||
echo "--- DOCKER NETWORK INSPECT ---"
|
||||
docker network inspect ${DOCKER_NET} || true
|
||||
|
||||
- name: Clean up Docker containers
|
||||
- name: Test Summary
|
||||
uses: test-summary/action@v2
|
||||
with:
|
||||
paths: "**/TEST-*.xml"
|
||||
if: always()
|
||||
run: |
|
||||
docker ps -a --filter network=${DOCKER_NET} -q | xargs -r docker rm -f
|
||||
docker network rm ${DOCKER_NET}
|
||||
Reference in New Issue
Block a user