diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml index f8a0fe8..f9c9c19 100644 --- a/.github/workflows/analyse.yml +++ b/.github/workflows/analyse.yml @@ -9,12 +9,10 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.3] - laravel: [10.*, 11.*] + php: [8.3, 8.4] + laravel: [11.*] stability: [prefer-stable] include: - - laravel: 10.* - testbench: 8.* - laravel: 11.* testbench: 9.* diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c85cbf7..8bb396f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,12 +9,10 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.3] - laravel: [10.*, 11.*] + php: [8.4] + laravel: [11.*] stability: [prefer-stable] include: - - laravel: 10.* - testbench: 8.* - laravel: 11.* testbench: 9.* @@ -33,8 +31,7 @@ jobs: - name: Install dependencies run: | - composer config allow-plugins.pestphp/pest-plugin true - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" pestphp/pest --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests - run: XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=100 + run: composer coverage diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index e9a5c3d..0439b8d 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -16,7 +16,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: 8.4 extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo coverage: none diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bf6eb0c..5b04952 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,17 +9,12 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.1, 8.2, 8.3] - laravel: [10.*, 11.*] + php: [8.3, 8.4] + laravel: [11.*] stability: [prefer-lowest, prefer-stable] include: - - laravel: 10.* - testbench: 8.* - laravel: 11.* testbench: 9.* - exclude: - - laravel: 11.* - php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index debc630..ef3603b 100644 --- a/composer.json +++ b/composer.json @@ -12,15 +12,16 @@ } ], "require": { - "php": "^8.1", - "laravel/framework": "^10.0|^11.0" + "php": "^8.3", + "laravel/framework": "^11.0|^12.0" }, "require-dev": { - "larastan/larastan": "^2.9", - "laravel/pint": "^1.6", - "orchestra/testbench": "^8.0|^9.0", - "phpstan/phpstan-mockery": "^1.1", - "phpunit/phpunit": "^10.5" + "larastan/larastan": "^3.0", + "laravel/pint": "^1.20", + "orchestra/testbench": "^9.0", + "pestphp/pest": "^3.7", + "phpstan/phpstan-mockery": "^2.0", + "phpunit/phpunit": "^11.5" }, "autoload": { "psr-4": { @@ -34,17 +35,22 @@ }, "scripts": { "test": "phpunit", - "analyse": "phpstan", + "analyse": "phpstan --memory-limit=256M", "style": "pint --test", "fix-style": "pint", "quality": [ - "@test", + "@style", "@analyse", - "@style" - ] + "@test", + "@coverage" + ], + "coverage": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=100" }, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } }, "extra": { "laravel": { diff --git a/phpstan.neon b/phpstan.neon index ae42faf..ffdbf4b 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,4 +7,5 @@ parameters: - src - tests level: 8 - checkMissingIterableValueType: false + ignoreErrors: + - identifier: missingType.iterableValue