From 5585c04ccdded19613f69aa96a6d3beee0e538cf Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Tue, 14 Apr 2026 10:00:03 +0000 Subject: [PATCH] fixing github actions steps and configuration --- .github/workflows/registry-ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/registry-ci.yml b/.github/workflows/registry-ci.yml index e2adc9723..1bd81b655 100644 --- a/.github/workflows/registry-ci.yml +++ b/.github/workflows/registry-ci.yml @@ -25,12 +25,11 @@ jobs: image: mariadb:11 port: 3306 + # Exactly ONE service container per matrix run (the image changes) services: db: image: ${{ matrix.db.image }} - ports: - - ${{ matrix.db.port }}:${{ matrix.db.port }} env: # Postgres vars (used only by postgres image) POSTGRES_DB: registry_test @@ -56,7 +55,7 @@ jobs: DB_ENGINE: ${{ matrix.db.engine }} # DB service connection info (because you publish ports) - COMANAGE_REGISTRY_DATABASE_HOST: 127.0.0.1 + COMANAGE_REGISTRY_DATABASE_HOST: db COMANAGE_REGISTRY_DATABASE_PORT: ${{ matrix.db.port }} # Values used by your PHPUnit setup test @@ -197,6 +196,13 @@ jobs: run: | tree -L 3 "${COMANAGE_REGISTRY_DIR}" + - name: Debug DB connectivity + shell: bash + run: | + set -euxo pipefail + echo "Host=$COMANAGE_REGISTRY_DATABASE_HOST Port=$COMANAGE_REGISTRY_DATABASE_PORT Engine=$DB_ENGINE" + getent hosts "$COMANAGE_REGISTRY_DATABASE_HOST" || true + - name: Run PHPUnit (DB_ENGINE=${{ matrix.db_engine }}) shell: bash working-directory: /srv/comanage-registry/app