Skip to content

Commit

Permalink
Support for Laravel 10 (#8)
Browse files Browse the repository at this point in the history
* Add support and tests for Laravel 10

* Fix bad version-check
  • Loading branch information
olssonm authored Feb 20, 2023
1 parent b192890 commit f88adb9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
strategy:
matrix:
include:
- php: 8.2
laravel: ^10.0
- php: 8.1
laravel: ^10.0
- php: 8.1
laravel: ^9.0
- php: 8.1
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"license": "MIT",
"minimum-stability": "stable",
"require": {
"laravel/framework": "^8|^9",
"spatie/sheets": "^1.7"
"laravel/framework": "^8|^9|^10",
"spatie/sheets": "^1.10"
},
"require-dev": {
"brianium/paratest": "^6.2",
"nunomaduro/collision": "^5|^6",
"orchestra/testbench": "^6.15|^7",
"orchestra/testbench": ">=6.15",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
Expand Down
4 changes: 3 additions & 1 deletion tests/InstallTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public function it_can_be_installed()

$output = Artisan::output();

if ((int) app()->version()[0] >= 9) {
$version = explode('.', app()->version())[0];

if ((int) $version >= 9) {
$this->assertStringContainsString('DONE', $output);
} else {
$this->assertStringContainsString('Copied File', $output);
Expand Down

0 comments on commit f88adb9

Please sign in to comment.