Skip to content

Commit

Permalink
Create local/config/database.php placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 13, 2026
1 parent ed385cb commit 16fb231
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/registry-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,12 @@ jobs:
sudo tar -zxf /tmp/comanage.tar.gz -C "${COMANAGE_REGISTRY_DIR}" --strip-components=1
rm -f /tmp/comanage.tar.gz
sudo rm -rf "${COMANAGE_REGISTRY_DIR}/local/"*
- name: Create local tmp/cache + webroot symlink
shell: bash
run: |
set -euxo pipefail
sudo mkdir -p "${COMANAGE_REGISTRY_DIR}/local"
sudo mkdir -p /var/cache/registry/tmp
sudo rm -rf "${COMANAGE_REGISTRY_DIR}/local/tmp"
sudo ln -s /var/cache/registry/tmp "${COMANAGE_REGISTRY_DIR}/local/tmp"
sudo chown -h apache:apache "${COMANAGE_REGISTRY_DIR}/local/tmp"
sudo chown -h wwww-data:www-data "${COMANAGE_REGISTRY_DIR}/local/tmp"
sudo mkdir -p /var/www/html
sudo rm -f "/var/www/html/${COMANAGE_REGISTRY_URL_PATH}"
Expand All @@ -160,6 +152,17 @@ jobs:
echo "Registry URL path is: ${COMANAGE_REGISTRY_URL_PATH}"
echo "Registry Version is: ${COMANAGE_REGISTRY_VERSION}"
- name: Create local/config/database.php placeholder
shell: bash
run: |
set -euxo pipefail
sudo mkdir -p "${COMANAGE_REGISTRY_DIR}/../local/config"
sudo tee "${COMANAGE_REGISTRY_DIR}/../local/config/database.php" > /dev/null <<'EOF'
<?php
// Placeholder: actual connection is configured dynamically by tests/bootstrap.php via Testcontainers
return [];
EOF
- name: Run PHPUnit (DB_ENGINE=${{ matrix.db_engine }})
shell: bash
working-directory: /srv/comanage-registry/app
Expand Down

0 comments on commit 16fb231

Please sign in to comment.