diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index e2daae2..28e2b50 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -11,13 +11,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - laravel-versions: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0"] - php-versions: ["7.2", "7.3", "7.4", "8.0", "8.1"] + laravel-versions: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0", "^11.0"] + php-versions: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"] exclude: - laravel-versions: "^6.0" php-versions: "8.1" + - laravel-versions: "^6.0" + php-versions: "8.2" - laravel-versions: "^7.0" php-versions: "8.1" + - laravel-versions: "^7.0" + php-versions: "8.2" - laravel-versions: "^8.0" php-versions: "7.2" - laravel-versions: "^9.0" @@ -34,6 +38,16 @@ jobs: php-versions: "7.4" - laravel-versions: "^10.0" php-versions: "8.0" + - laravel-versions: "^11.0" + php-versions: "7.2" + - laravel-versions: "^11.0" + php-versions: "7.3" + - laravel-versions: "^11.0" + php-versions: "7.4" + - laravel-versions: "^11.0" + php-versions: "8.0" + - laravel-versions: "^11.0" + php-versions: "8.1" name: PHP ${{ matrix.php-versions }} with Laravel ${{ matrix.laravel-versions }} steps: - name: Checkout @@ -47,6 +61,9 @@ jobs: run: | composer require --dev --no-progress --no-suggest -n -o "laravel/framework:${{ matrix.laravel-versions }}" composer install --no-progress --no-suggest -n -o + - name: Migrate phpunit config + if: ${{ matrix.php-versions >= '8.1' }} + run: composer exec -- phpunit --migrate-configuration - name: Run test suite run: composer test:dist # - name: Run test coverage diff --git a/composer.json b/composer.json index 3991ad1..9c89c8a 100644 --- a/composer.json +++ b/composer.json @@ -4,8 +4,8 @@ "keywords": ["laravel", "log", "history", "tracking", "eloquent", "model"], "homepage": "https://github.com/seancheung/history", "require": { - "php": "^7.2|^7.2.5|^7.3|^8.0|^8.1", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0" + "php": "^7.2|^7.2.5|^7.3|^8.0|^8.1|^8.2", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0" }, "license": "MIT", "authors": [ @@ -30,8 +30,8 @@ } }, "require-dev": { - "phpunit/phpunit": "^8.3|^8.4|^9.0", - "orchestra/testbench": "^4.8|^5.2|^6.2|^7.5|^8.0", + "phpunit/phpunit": "^8.3|^8.4|^9.0|^10.5", + "orchestra/testbench": "^4.8|^5.2|^6.2|^7.5|^8.0|^9.0", "mockery/mockery": "^1.2", "php-coveralls/php-coveralls": "^2.1" },