diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c734a3d..5a163d6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,34 +3,45 @@ name: run-tests on: [push, pull_request] jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - php: [8.2, 8.1] - dependency-version: [prefer-lowest, prefer-stable] - - name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - - - name: Install dependencies - run: | - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - - - name: Code Style ๐จโ๐ญ - run: composer test:lint - - - name: Pest Tests ๐งซ - run: composer test:unit - - - name: PHPStan ๐งช - run: composer test:static + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + php: [8.3, 8.2, 8.1] + laravel: [10.*, 11.*] + dependency-version: [prefer-stable] + include: + - laravel: 10.* + testbench: 8.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 11.* + php: 8.1 + + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + + - name: Install dependencies + run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:>=2.62.1" --no-interaction --no-update + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + + - name: Code Style ๐จโ๐ญ + run: composer test:lint + + - name: Pest Tests ๐งซ + run: composer test:unit + + - name: PHPStan ๐งช + run: composer test:static diff --git a/README.md b/README.md index 6107c22..9912499 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@
diff --git a/composer.json b/composer.json index e93f786..44f9aec 100644 --- a/composer.json +++ b/composer.json @@ -33,17 +33,17 @@ ], "require": { "php": "^8.1", - "illuminate/database": "^9.0|^10.0", - "illuminate/support": "^9.0|^10.0", - "illuminate/validation": "^9.0|^10.0" + "illuminate/database": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0", + "illuminate/validation": "^10.0|^11.0" }, "require-dev": { - "pestphp/pest": "^2.15", - "laravel/pint": "^1.11", - "phpstan/phpstan": "^1.10", - "nunomaduro/larastan": "^2.0", - "orchestra/testbench": "^8.9", - "pestphp/pest-plugin-faker": "^2.0" + "larastan/larastan": "^2.0", + "laravel/pint": "^1.14", + "orchestra/testbench": "^8.0|^9.0", + "pestphp/pest": "^2.0", + "pestphp/pest-plugin-faker": "^2.0", + "phpstan/phpstan": "^1.10" }, "scripts": { "lint": "pint", diff --git a/src/Console/Commands/LiftMigration.php b/src/Console/Commands/LiftMigration.php index 4138870..128854e 100644 --- a/src/Console/Commands/LiftMigration.php +++ b/src/Console/Commands/LiftMigration.php @@ -24,8 +24,6 @@ final class LiftMigration extends Command protected $signature = 'lift:migration {model} {--namespace=App\\Models\\}'; - protected static $defaultName = 'lift:migration'; - protected $description = 'Create migration files based on Lift models'; public function handle(): int