From 9cbbed1410062bb53dfaaeff549f7a1be0b2748e 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 bf244ec..06a51aa 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 e71b48d..b92ecf2 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('govicon-book')->toHtml(); @@ -26,7 +26,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('govicon-book', 'w-6 h-6 text-gray-500')->toHtml(); $expected = <<<'SVG' @@ -36,7 +36,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('govicon-book', ['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-govicons.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-govicons.class', 'awesome'); From 3c30963d601a14522ae1fc5778373385fa64434c Mon Sep 17 00:00:00 2001 From: Swapnil Sarwe Date: Sun, 22 Mar 2026 20:32:34 +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 }}