diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c8a99f0..35272dc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,16 +12,87 @@ jobs: run: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - php: [ 8.1, 8.2, 8.3, 8.4 ] - laravel: [ 10, 11, 12 ] - exclude: + include: - php: '8.1' - laravel: 11 - - php: '8.1' - laravel: 12 + laravel: '10' + pest: '2.35.1' + testbench: '^8.0' + phpunit: '10.5.17' + block_insecure: 'false' + - php: '8.2' + laravel: '10' + pest: '^2.0' + testbench: '^8.0' + phpunit: '' + block_insecure: 'true' + - php: '8.2' + laravel: '11' + pest: '^3.0' + testbench: '^9.0' + phpunit: '' + block_insecure: 'true' + - php: '8.3' + laravel: '11' + pest: '^3.0' + testbench: '^9.0' + phpunit: '' + block_insecure: 'true' + - php: '8.2' + laravel: '12' + pest: '^3.0' + testbench: '^10.0' + phpunit: '' + block_insecure: 'true' + - php: '8.3' + laravel: '12' + pest: '^3.0' + testbench: '^10.0' + phpunit: '' + block_insecure: 'true' + - php: '8.3' + laravel: '13' + pest: '^4.0' + testbench: '^11.0' + phpunit: '' + block_insecure: 'true' + - php: '8.4' + laravel: '11' + pest: '^3.0' + testbench: '^9.0' + phpunit: '' + block_insecure: 'true' + - php: '8.5' + laravel: '11' + pest: '^3.0' + testbench: '^9.0' + phpunit: '' + block_insecure: 'true' + - php: '8.4' + laravel: '12' + pest: '^3.0' + testbench: '^10.0' + phpunit: '' + block_insecure: 'true' + - php: '8.5' + laravel: '12' + pest: '^3.0' + testbench: '^10.0' + phpunit: '' + block_insecure: 'true' - php: '8.4' - laravel: 10 + laravel: '13' + pest: '^4.0' + testbench: '^11.0' + phpunit: '' + block_insecure: 'true' + - php: '8.5' + laravel: '13' + pest: '^4.0' + testbench: '^11.0' + phpunit: '' + block_insecure: 'true' name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} @@ -36,7 +107,18 @@ jobs: - name: Install dependencies run: | - composer require "illuminate/support=^${{ matrix.laravel }}" --no-update + composer config audit.block-insecure "${{ matrix.block_insecure }}" + composer require "illuminate/support=^${{ matrix.laravel }}" "illuminate/validation=^${{ matrix.laravel }}" --no-update + dev_requirements=( + "orchestra/testbench=${{ matrix.testbench }}" + "pestphp/pest=${{ matrix.pest }}" + ) + + if [ -n "${{ matrix.phpunit }}" ]; then + dev_requirements+=("phpunit/phpunit=${{ matrix.phpunit }}") + fi + + composer require --dev "${dev_requirements[@]}" --no-update composer update --prefer-dist --no-interaction --no-progress - name: Execute tests diff --git a/README.md b/README.md index a6c0c71..ad1b091 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,9 @@ Editor.php is a package designed to assist in parsing and manipulating the outpu | Editor.php | Laravel | PHP | | --- | --- | --- | | 1.x | 10.x | 8.1 ~ 8.3 | -| 1.x | 11.x | 8.2 ~ 8.4 | -| 1.x | 12.x | 8.2 ~ 8.4 | +| 1.x | 11.x | 8.2 ~ 8.5 | +| 1.x | 12.x | 8.2 ~ 8.5 | +| 1.x | 13.x | 8.3 ~ 8.5 | # Quick Start diff --git a/composer.json b/composer.json index 8f66dba..bcbc9c7 100644 --- a/composer.json +++ b/composer.json @@ -22,8 +22,8 @@ ], "require": { "php": "^8.1", - "illuminate/support": "^10.0|^11.0|^12.0", - "illuminate/validation": "^10.0|^11.0|^12.0", + "illuminate/support": "^10.0|^11.0|^12.0|^13.0", + "illuminate/validation": "^10.0|^11.0|^12.0|^13.0", "fakerphp/faker": "^1.21" }, "extra": { @@ -34,8 +34,8 @@ } }, "require-dev": { - "pestphp/pest": "^1.22.4|^2.0|^3.0", - "orchestra/testbench": "^8.0|^9.0|^10.0", + "pestphp/pest": "^1.22.4|^2.0|^3.0|^4.0", + "orchestra/testbench": "^8.0|^9.0|^10.0|^11.0", "friendsofphp/php-cs-fixer": "^3.14.4", "phpstan/phpstan": "^1.10" },