oportunidades 4
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-10 07:03:59 +02:00
parent e662230df7
commit 6ddafc95ba
179 changed files with 22750 additions and 933 deletions
@@ -1,14 +1,17 @@
<?php
use App\Services\OpportunityResourceInstallation;
use Illuminate\Contracts\Console\Kernel;
// Read-only installation readiness; never applies migrations or authenticates an actor.
require dirname(__DIR__).'/vendor/autoload.php';
$app = require dirname(__DIR__).'/bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
$app->make(Kernel::class)->bootstrap();
$db = $app->make('db')->connection();
$db->beginTransaction();
try {
$db->statement('SET TRANSACTION READ ONLY');
$preview = $app->make(\App\Services\OpportunityResourceInstallation::class)->preview();
$preview = $app->make(OpportunityResourceInstallation::class)->preview();
$proofPath = storage_path('app/private/investmoz-v2/opportunity-resources-activation-proof.json');
$proof = is_file($proofPath) ? json_decode(file_get_contents($proofPath), true, 512, JSON_THROW_ON_ERROR) : [];
$result = [