Skip to content

Commit

Permalink
fixing github actions steps and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 14, 2026
1 parent b4c0736 commit 5585c04
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/registry-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5585c04

Please sign in to comment.