From 4d66f0b10171e070303f65b7e3953577e07d493c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Feb 2026 06:43:13 +0000 Subject: [PATCH] ci: add php-tenant dependency for unit tests --- .forgejo/workflows/ci.yml | 13 ++++++++----- composer.json | 3 ++- tests/TestCase.php | 1 + 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index e3f5d25..7fce2e1 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -30,15 +30,18 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - echo "Cloning php-framework into ../php-framework" - git clone --depth 1 \ - "https://x-access-token:${GITHUB_TOKEN}@forge.lthn.ai/core/php-framework.git" \ - ../php-framework - ls -la ../php-framework/composer.json + for pkg in php-framework php-tenant; do + echo "Cloning $pkg into ../$pkg" + git clone --depth 1 \ + "https://x-access-token:${GITHUB_TOKEN}@forge.lthn.ai/core/${pkg}.git" \ + ../$pkg + done + ls -la ../php-framework/composer.json ../php-tenant/composer.json - name: Configure path repositories run: | composer config repositories.core path ../php-framework --no-interaction + composer config repositories.tenant path ../php-tenant --no-interaction - name: Install dependencies run: composer install --prefer-dist --no-interaction --no-progress diff --git a/composer.json b/composer.json index 6d3ecf9..a93d82e 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "require-dev": { "laravel/pint": "^1.18", "orchestra/testbench": "^9.0|^10.0", - "pestphp/pest": "^3.0" + "pestphp/pest": "^3.0", + "host-uk/core-tenant": "@dev" }, "autoload": { "psr-4": { diff --git a/tests/TestCase.php b/tests/TestCase.php index eaba304..c6d0316 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -11,6 +11,7 @@ abstract class TestCase extends BaseTestCase protected function getPackageProviders($app): array { return [ + \Core\Tenant\Boot::class, \Core\Mod\Content\Boot::class, ]; }