Skip to content

Commit dea08e8

Browse files
authored
Laravel v10 for v1 (#37)
* Laravel v10 * wip
1 parent a2749ab commit dea08e8

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [7.4, '8.0', 8.1]
17-
laravel: [8, 9]
16+
php: [7.4, '8.0', 8.1, 8.2]
17+
laravel: [8, 9, 10]
1818
exclude:
1919
- php: 7.4
2020
laravel: 9
21+
- php: 7.4
22+
laravel: 10
23+
- php: '8.0'
24+
laravel: 10
2125

2226
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2327

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"require": {
1414
"php": "^7.4|^8.0",
1515
"blade-ui-kit/blade-icons": "^1.1",
16-
"illuminate/support": "^8.0|^9.0"
16+
"illuminate/support": "^8.0|^9.0|^10.0"
1717
},
1818
"require-dev": {
19-
"orchestra/testbench": "^6.0|^7.0",
19+
"orchestra/testbench": "^6.0|^7.0|^8.0",
2020
"phpunit/phpunit": "^9.0"
2121
},
2222
"autoload": {

tests/CompilesIconsTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public function it_compiles_a_single_anonymous_component()
1717

1818
// Note: the empty class here seems to be a Blade components bug.
1919
$expected = <<<'SVG'
20-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
21-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
20+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true">
21+
<path stroke-linecap="round" stroke-linejoin="round" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
2222
</svg>
2323
SVG;
2424

@@ -31,8 +31,8 @@ public function it_can_add_classes_to_icons()
3131
$result = svg('heroicon-o-bell', 'w-6 h-6 text-gray-500')->toHtml();
3232

3333
$expected = <<<'SVG'
34-
<svg class="w-6 h-6 text-gray-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
35-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
34+
<svg class="w-6 h-6 text-gray-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true">
35+
<path stroke-linecap="round" stroke-linejoin="round" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
3636
</svg>
3737
SVG;
3838

@@ -45,8 +45,8 @@ public function it_can_add_styles_to_icons()
4545
$result = svg('heroicon-o-bell', ['style' => 'color: #555'])->toHtml();
4646

4747
$expected = <<<'SVG'
48-
<svg style="color: #555" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
49-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
48+
<svg style="color: #555" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true">
49+
<path stroke-linecap="round" stroke-linejoin="round" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
5050
</svg>
5151
SVG;
5252

0 commit comments

Comments
 (0)