Skip to content

Commit 5667a4e

Browse files
authored
Merge pull request #54 from hydephp/release/v0.5.2
HydeCLI v0.5.2
2 parents 73fba41 + 15343b3 commit 5667a4e

File tree

6 files changed

+17
-18
lines changed

6 files changed

+17
-18
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ jobs:
229229
- name: Verify server is running
230230
run: curl -sS localhost:8080 | grep -q "Hello World"
231231

232+
- name: Test dashboard can be accessed
233+
run: curl -sS localhost:8080/dashboard | grep -q "HydePHP - Dashboard"
234+
232235
test-live-executable-proxying:
233236
needs: build-executable
234237

app/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Application extends \Hyde\Foundation\Application
88
{
9-
final public const APP_VERSION = '0.5.1';
9+
final public const APP_VERSION = '0.5.2';
1010

1111
public function getCachedPackagesPath(): string
1212
{

app/Commands/ServeCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ protected function proxyPharServer(): string
2929
{
3030
$path = HYDE_TEMP_DIR.'/bin/server.php';
3131

32-
if (File::exists($path)) {
33-
return $path;
34-
}
35-
3632
$this->createServer($path);
3733

3834
return $path;

builds/hyde

155 Bytes
Binary file not shown.

composer.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Unit/ServeCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
test('getExecutablePath method proxies server executable', function () {
1313
HydeKernel::setInstance(new HydeKernel(HYDE_WORKING_DIR));
14-
File::shouldReceive('exists')->twice()->andReturnFalse();
14+
File::shouldReceive('exists')->once()->andReturnFalse();
1515
File::shouldReceive('ensureDirectoryExists')->once()->with('/path/to/temp/dir/bin');
1616
File::shouldReceive('put')->once()->withArgs(function ($path, $contents) {
1717
expect($path)->toBe('/path/to/temp/dir/bin/server.php')

0 commit comments

Comments
 (0)