Fix the Docker image not starting: update Livewire Material to 1.1.1
tests / ci (8.5) (push) Successful in 2m16s
linter / quality (push) Successful in 1m1s
docker / build-and-push (push) Successful in 7m5s
docker / test (8.5) (push) Successful in 2m16s
docker / release (push) Successful in 4s

The entrypoint's php artisan view:cache failed on the package's showcase
views, whose components were only registered with the showcase enabled.
1.1.1 registers them always. ProductionBootTest caches every view with
the showcase off, as the entrypoint does.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
This commit is contained in:
Andreas Reinhold / reini
2026-09-13 17:59:34 +02:00
co-authored by Claude Opus 5
parent cd97612b4d
commit 461bc23f0a
3 changed files with 34 additions and 4 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
use Illuminate\Support\Facades\File;
/*
* docker/entrypoint.sh caches the configuration, routes and views on every start, with the
* Livewire Material showcase off (it only runs locally). A view that does not compile there stops
* the container from booting, so the tests compile them as production does.
*/
test('every view compiles as the production entrypoint caches them', function () {
expect(config('livewire-material.showcase.enabled'))->toBeFalse();
$compiled = storage_path('framework/testing/view-cache-'.uniqid());
File::ensureDirectoryExists($compiled);
config(['view.compiled' => $compiled]);
try {
$this->artisan('view:cache')->assertSuccessful();
} finally {
File::deleteDirectory($compiled);
}
});