From 3386de1a0e4f98b2601de73723365bda66a3de10 Mon Sep 17 00:00:00 2001 From: Swapnil Sarwe Date: Sun, 22 Mar 2026 20:23:45 +0530 Subject: [PATCH 1/2] laravel 13 compatibility --- .github/workflows/tests.yml | 5 +++-- composer.json | 8 ++++---- tests/CompilesIconsTest.php | 10 +++++----- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d2e57f5..6d94603 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,8 +10,8 @@ jobs: strategy: fail-fast: true matrix: - php: [7.4, '8.0', 8.1, 8.2, 8.3, 8.4] - laravel: [8, 9, 10, 11, 12] + php: [7.4, '8.0', 8.1, 8.2, 8.3, 8.4. 8.5] + laravel: [8, 9, 10, 11, 12, 13] exclude: - php: 7.4 laravel: 9 @@ -43,6 +43,7 @@ jobs: laravel: 9 - php: 8.4 laravel: 10 + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} diff --git a/composer.json b/composer.json index bf3d043..a2a6dad 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ "require": { "php": "^7.4|^8.0", "blade-ui-kit/blade-icons": "^1.1", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0" + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0" }, "require-dev": { - "codeat3/blade-icon-generation-helpers": "^0.10", + "codeat3/blade-icon-generation-helpers": "^0.12", "codeat3/phpcs-styles": "^1.0", - "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0", - "phpunit/phpunit": "^9.0|^10.5|^11.0" + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "phpunit/phpunit": "^9.0|^10.5|^11.0|^12.0" }, "autoload": { "psr-4": { diff --git a/tests/CompilesIconsTest.php b/tests/CompilesIconsTest.php index ddbfe9d..91eabff 100644 --- a/tests/CompilesIconsTest.php +++ b/tests/CompilesIconsTest.php @@ -12,7 +12,7 @@ class CompilesIconsTest extends TestCase { /** @test */ - public function it_compiles_a_single_anonymous_component() + public function test_it_compiles_a_single_anonymous_component() { $result = svg('microns-bold')->toHtml(); @@ -25,7 +25,7 @@ public function it_compiles_a_single_anonymous_component() } /** @test */ - public function it_can_add_classes_to_icons() + public function test_it_can_add_classes_to_icons() { $result = svg('microns-bold', 'w-6 h-6 text-gray-500')->toHtml(); @@ -37,7 +37,7 @@ public function it_can_add_classes_to_icons() } /** @test */ - public function it_can_add_styles_to_icons() + public function test_it_can_add_styles_to_icons() { $result = svg('microns-bold', ['style' => 'color: #555'])->toHtml(); @@ -49,7 +49,7 @@ public function it_can_add_styles_to_icons() } /** @test */ - public function it_can_add_default_class_from_config() + public function test_it_can_add_default_class_from_config() { Config::set('blade-microns.class', 'awesome'); @@ -64,7 +64,7 @@ public function it_can_add_default_class_from_config() } /** @test */ - public function it_can_merge_default_class_from_config() + public function test_it_can_merge_default_class_from_config() { Config::set('blade-microns.class', 'awesome'); From fe9c8159a79b23baa4241a9cfab00347f0f1abca Mon Sep 17 00:00:00 2001 From: Swapnil Sarwe Date: Sun, 22 Mar 2026 20:32:09 +0530 Subject: [PATCH 2/2] laravel 13 compatibility --- .github/workflows/tests.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6d94603..33e28f2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,7 +43,23 @@ jobs: laravel: 9 - php: 8.4 laravel: 10 - + - php: 8.5 + laravel: 8 + - php: 8.5 + laravel: 9 + - php: 8.5 + laravel: 10 + - php: 8.5 + laravel: 11 + - php: 7.4 + laravel: 13 + - php: '8.0' + laravel: 13 + - php: 8.1 + laravel: 13 + - php: 8.2 + laravel: 13 + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}