diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7cbba33..cc6ae32 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,14 +13,23 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1, 8.0] - laravel: [9.*, 8.*] + php: [8.2, 8.1, 8.0] + laravel: [10.*, 9.*, 8.*] stability: [prefer-lowest, prefer-stable] include: + - laravel: 10.* + testbench: ^8.0.0 - laravel: 9.* testbench: ^7.0.0 - laravel: 8.* testbench: ^6.23 + exclude: + - laravel: 8.* + php: 8.2 + - laravel: 9.* + php: 8.2 + - laravel: 10.* + php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index cff6e9a..c50e538 100644 --- a/composer.json +++ b/composer.json @@ -18,19 +18,19 @@ "require": { "php": "^8.0|^8.1", "spatie/laravel-package-tools": "^1.9.2", - "illuminate/console": "^8.75|^9.0", - "illuminate/contracts": "^8.0|^9.0" + "illuminate/console": "^8.75|^9.0|^10.0", + "illuminate/contracts": "^8.0|^9.0|^10.0" }, "require-dev": { - "nunomaduro/collision": "^5.10|^6.1", - "nunomaduro/larastan": "^1.0", - "orchestra/testbench": "^6.23|^7.0.0", - "pestphp/pest": "^1.21", - "pestphp/pest-plugin-laravel": "^1.1", - "phpstan/extension-installer": "^1.1", + "nunomaduro/collision": "^5.10|^6.1|^7.0", + "nunomaduro/larastan": "^1.0|^2.0", + "orchestra/testbench": "^6.23|^7.0.0|^8.0", + "pestphp/pest": "^1.22", + "pestphp/pest-plugin-laravel": "^1.3", + "phpstan/extension-installer": "^1.2", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9.5|^10.0" }, "autoload": { "psr-4": { diff --git a/tests/PresentersTest.php b/tests/PresentersTest.php index 61c82b2..06d511b 100644 --- a/tests/PresentersTest.php +++ b/tests/PresentersTest.php @@ -4,6 +4,10 @@ use Coderflex\LaravelPresenter\Tests\Models\User; it('cannot create new presenter without a name argument', function () { + $this->markTestSkipped( + __('In laravel V9.*, and above versions, it can put a question for the name argument, if it\'s not presented.') + ); + $this->artisan('presenter:make ') ->assertExitCode(1); })->throws(