Skip to content

Commit f88adb9

Browse files
authored
Support for Laravel 10 (#8)
* Add support and tests for Laravel 10 * Fix bad version-check
1 parent b192890 commit f88adb9

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
strategy:
1010
matrix:
1111
include:
12+
- php: 8.2
13+
laravel: ^10.0
14+
- php: 8.1
15+
laravel: ^10.0
1216
- php: 8.1
1317
laravel: ^9.0
1418
- php: 8.1

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"license": "MIT",
1111
"minimum-stability": "stable",
1212
"require": {
13-
"laravel/framework": "^8|^9",
14-
"spatie/sheets": "^1.7"
13+
"laravel/framework": "^8|^9|^10",
14+
"spatie/sheets": "^1.10"
1515
},
1616
"require-dev": {
1717
"brianium/paratest": "^6.2",
1818
"nunomaduro/collision": "^5|^6",
19-
"orchestra/testbench": "^6.15|^7",
19+
"orchestra/testbench": ">=6.15",
2020
"squizlabs/php_codesniffer": "^3.5"
2121
},
2222
"autoload": {

tests/InstallTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public function it_can_be_installed()
1616

1717
$output = Artisan::output();
1818

19-
if ((int) app()->version()[0] >= 9) {
19+
$version = explode('.', app()->version())[0];
20+
21+
if ((int) $version >= 9) {
2022
$this->assertStringContainsString('DONE', $output);
2123
} else {
2224
$this->assertStringContainsString('Copied File', $output);

0 commit comments

Comments
 (0)