1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 17:36:38 +02:00

feat: Queue package manager commands (#3418)

* feat: Queue package manager commands
* adjust tests
* fix: force run whynot command synchronously
* chore: maximize command output box's height
* chore: more user instructions on background queue
* feat: track command peak memory usage
* feat: exit of CLI php version doesn't match web php version
* chore: install deps
* chore: format and typing workflow fix

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
This commit is contained in:
Sami Mazouz
2022-07-24 14:02:13 +01:00
committed by GitHub
parent 75aaef7d76
commit 795a500adb
71 changed files with 1631 additions and 375 deletions

View File

@@ -37,8 +37,6 @@ class SetupComposer
if (file_exists($composerLock)) {
unlink($composerLock);
}
echo 'composer.json created with testing packages directory.';
}
private function getConfig(): array

View File

@@ -27,6 +27,6 @@ class GlobalUpdateTest extends TestCase
])
);
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals(201, $response->getStatusCode());
}
}

View File

@@ -81,7 +81,7 @@ class MajorUpdateTest extends TestCase
}
)[0]['latest-major'];
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals(201, $response->getStatusCode());
$this->assertPackageVersion('flarum/core', str_replace('v', '^', $newMinorCoreVersion));
$this->assertPackageVersion('flarum/tags', '*');
$this->assertPackageVersion('flarum/dummy-compatible-extension', '*');

View File

@@ -23,7 +23,7 @@ class MinorUpdateTest extends TestCase
use DummyExtensions;
/**
* @test--
* @test
*/
public function can_update_to_next_minor_version()
{
@@ -48,7 +48,7 @@ class MinorUpdateTest extends TestCase
])
);
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals(201, $response->getStatusCode());
$this->assertPackageVersion('flarum/tags', '*');
$this->assertPackageVersion('flarum/dummy-compatible-extension', '*');
}
@@ -85,7 +85,7 @@ class MinorUpdateTest extends TestCase
/** @var LastUpdateRun $lastUpdateRun */
$lastUpdateRun = $this->app()->getContainer()->make(LastUpdateRun::class);
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals(201, $response->getStatusCode());
$this->assertPackageVersion('flarum/tags', '*');
$this->assertPackageVersion('flarum/dummy-extension', '*');
$this->assertEquals([

View File

@@ -35,7 +35,7 @@ class RemoveExtensionTest extends TestCase
])
);
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals(201, $response->getStatusCode());
$this->assertExtensionNotExists('flarum-tags');
}

View File

@@ -35,7 +35,7 @@ class UpdateExtensionTest extends TestCase
])
);
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals(201, $response->getStatusCode());
$this->assertExtensionExists('flarum-tags');
}