Skip to content

Commit 4472776

Browse files
committed
fix: change pest for github action
1 parent 6e76d81 commit 4472776

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/Pest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
$dbHost = getenv('DB_HOST') ?: (getenv('GITHUB_ACTIONS') ? '127.0.0.1' : 'database-testing');
2929
$dbPort = (int)(getenv('DB_PORT') ?: 3306);
3030

31-
fwrite(STDOUT, "\n[Setup-Neu] Nutze Umgebung: $appEnv\n");
32-
fwrite(STDOUT, "[Setup-Neu] Warte auf Datenbank $dbHost:$dbPort...\n");
31+
fwrite(STDOUT, "\n[Setup] Environment: $appEnv\n");
32+
fwrite(STDOUT, "[Setup] Waiting for database $dbHost:$dbPort...\n");
3333

3434
$bin = __DIR__ . '/../bin/migrations.php';
3535
$maxTries = 20; // Mehr Puffer für GHA
@@ -47,11 +47,11 @@
4747
}
4848

4949
if (!$connected) {
50-
fwrite(STDERR, "\n[Error] Datenbank nicht erreichbar!\n");
50+
fwrite(STDERR, "\n[Error] Database not accessible!\n");
5151
exit(1);
5252
}
5353

54-
fwrite(STDOUT, "\n[Setup-Neu] Migrationen starten...\n");
54+
fwrite(STDOUT, "[Setup] Start migrations...\n");
5555

5656
$resultCode = 0;
5757
passthru("php $bin migrations:migrate --no-interaction --quiet first", $resultCode);
@@ -60,7 +60,7 @@
6060
if ($resultCode !== 0) {
6161
exit($resultCode);
6262
}
63-
fwrite(STDOUT, "[Setup-Neu] Datenbank bereit.\n\n");
63+
fwrite(STDOUT, "[Setup] Database ready.\n\n");
6464
})();
6565

6666
uses(TestIntegrationCase::class)->beforeEach(function () {

0 commit comments

Comments
 (0)