ci: add php-tenant dependency for unit tests
This commit is contained in:
parent
ecfc550ed4
commit
4d66f0b101
3 changed files with 11 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ abstract class TestCase extends BaseTestCase
|
|||
protected function getPackageProviders($app): array
|
||||
{
|
||||
return [
|
||||
\Core\Tenant\Boot::class,
|
||||
\Core\Mod\Content\Boot::class,
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue