diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1d63263..c7ddccf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,11 +9,13 @@ jobs: strategy: matrix: php: ['8.0', '8.1'] - laravel: ['8.22', '8.83', '9.0'] + laravel: ['8.22', '8.83', '9.0', '9.52', '10.0'] enum: ['2', '3', '4'] exclude: - php: '8.1' laravel: '8.22' + - php: '8.0' + laravel: '10.0' name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} Enum ${{ matrix.enum }} steps: - name: Checkout @@ -28,6 +30,16 @@ jobs: run: | composer require "konekt/enum:${{ matrix.enum }}.*" --no-update -v composer require "laravel/framework:${{ matrix.laravel }}.*" --no-update -v + - name: Testbench Version Adjustments + run: | + is_smaller_version() [[ $(echo -e "$1\n$2"|sort -V|head -1) != $2 ]] + is_smaller_version "${{ matrix.laravel }}" "9.36" && composer req "orchestra/testbench-core:7.10.2" --no-update + is_smaller_version "${{ matrix.laravel }}" "9.34" && composer req "orchestra/testbench-core:7.8.1" --no-update + is_smaller_version "${{ matrix.laravel }}" "9.32" && composer req "orchestra/testbench-core:7.7.1" --no-update + is_smaller_version "${{ matrix.laravel }}" "9.12" && composer req "orchestra/testbench-core:7.4.0" --no-update + is_smaller_version "${{ matrix.laravel }}" "9.7" && composer req "orchestra/testbench-core:7.3.0" --no-update + is_smaller_version "${{ matrix.laravel }}" "9.6" && composer req "orchestra/testbench-core:7.2.0" --no-update + is_smaller_version "${{ matrix.laravel }}" "9.5" && composer req "orchestra/testbench-core:7.1.0" --no-update || true - name: Composer Install run: composer install --prefer-dist --no-progress --no-interaction - name: Create Database diff --git a/Changelog.md b/Changelog.md index b2d0bcf..0153b96 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,11 @@ # Changelog ### Konekt Enum Eloquent +## Unreleased +##### 2023-XX-YY + +- Added Laravel 10 support + ## 1.8.1 ##### 2022-03-11 diff --git a/composer.json b/composer.json index de4565f..27e1f56 100644 --- a/composer.json +++ b/composer.json @@ -24,11 +24,11 @@ "require": { "php": "^8.0", "konekt/enum": "^2.0.2 || ^3.0 | ^4.0", - "illuminate/database": "8.*|9.*" + "illuminate/database": "8.*|9.*|10.*" }, "require-dev": { - "phpunit/phpunit": "8 - 10", - "illuminate/events": "8.*|9.*" + "phpunit/phpunit": "9 - 10", + "illuminate/events": "8.*|9.*|10.*" }, "autoload": { "psr-4": { "Konekt\\Enum\\Eloquent\\": "src/" }