diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e88814f..cc8f705 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,12 +9,23 @@ jobs: fail-fast: true matrix: os: [ ubuntu-latest ] - php: [ 7.3, 7.4, 8.0 ] - laravel: [ 8.* ] + php: [ 7.3, 7.4, 8.0, 8.1 ] + laravel: [ "^8.0", "^9.0" ] stability: [ prefer-lowest, prefer-stable ] + exclude: + - php: 7.3 + laravel: "^9.0" + - php: 7.4 + laravel: "^9.0" + - php: 8.1 + laravel: "^8.0" include: - - laravel: 8.* - testbench: 6.* + - laravel: "^8.0" + testbench: "^6.0" + enum: "^4.0" + - laravel: "^9.0" + testbench: "^7.0" + enum: "^5.0" name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -47,7 +58,7 @@ jobs: - name: Install dependencies run: | composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}" - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "bensampo/laravel-enum:${{ matrix.enum }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests diff --git a/composer.json b/composer.json index 068705a..6b992ac 100644 --- a/composer.json +++ b/composer.json @@ -27,17 +27,17 @@ ], "require": { "php": "^7.3|^8.0", - "bensampo/laravel-enum": "^3.1|^4.0", - "illuminate/support": "^8.0", + "bensampo/laravel-enum": "^3.1|^4.0|^5.0", + "illuminate/support": "^8.0|^9.0", "laravel/nova": "^3.0" }, "require-dev": { "joshgaber/novaunit": "^2.2", "mockery/mockery": "^1.3.3", - "nunomaduro/collision": "^5.2", - "orchestra/testbench": "^6.0", + "nunomaduro/collision": "^5.2|^6.1", + "orchestra/testbench": "^6.0|^7.0", "phpunit/phpunit": "^9.3.3", - "symfony/var-dumper": "^5.0" + "symfony/var-dumper": "^5.0|^6.0" }, "autoload": { "psr-4": { @@ -59,5 +59,6 @@ }, "config": { "sort-packages": true - } + }, + "minimum-stability": "dev" } diff --git a/tests/Examples/FlaggedModel.php b/tests/Examples/FlaggedModel.php index a3f9c99..3a600dd 100644 --- a/tests/Examples/FlaggedModel.php +++ b/tests/Examples/FlaggedModel.php @@ -2,13 +2,10 @@ namespace SimpleSquid\Nova\Fields\Enum\Tests\Examples; -use BenSampo\Enum\Traits\CastsEnums; use Illuminate\Database\Eloquent\Model; class FlaggedModel extends Model { - use CastsEnums; - public $table = 'example_models'; protected $guarded = []; diff --git a/tests/Examples/IntegerModel.php b/tests/Examples/IntegerModel.php index cc9f928..4a59766 100644 --- a/tests/Examples/IntegerModel.php +++ b/tests/Examples/IntegerModel.php @@ -2,13 +2,10 @@ namespace SimpleSquid\Nova\Fields\Enum\Tests\Examples; -use BenSampo\Enum\Traits\CastsEnums; use Illuminate\Database\Eloquent\Model; class IntegerModel extends Model { - use CastsEnums; - public $table = 'example_models'; protected $guarded = []; diff --git a/tests/Examples/StringModel.php b/tests/Examples/StringModel.php index 2a4d524..6e4eca3 100644 --- a/tests/Examples/StringModel.php +++ b/tests/Examples/StringModel.php @@ -2,13 +2,10 @@ namespace SimpleSquid\Nova\Fields\Enum\Tests\Examples; -use BenSampo\Enum\Traits\CastsEnums; use Illuminate\Database\Eloquent\Model; class StringModel extends Model { - use CastsEnums; - public $table = 'example_models'; protected $guarded = [];