ci: add php-tenant dependency for unit tests
Some checks failed
CI / PHP 8.3 (push) Failing after 1m29s
CI / PHP 8.4 (push) Failing after 1m31s

This commit is contained in:
Claude 2026-02-23 06:43:13 +00:00
parent ecfc550ed4
commit 4d66f0b101
3 changed files with 11 additions and 6 deletions

View file

@ -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

View file

@ -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": {

View file

@ -11,6 +11,7 @@ abstract class TestCase extends BaseTestCase
protected function getPackageProviders($app): array
{
return [
\Core\Tenant\Boot::class,
\Core\Mod\Content\Boot::class,
];
}