diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0286e0e..4772f41 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -21,7 +21,7 @@ jobs: uses: actions/cache@v4 with: path: ~/.composer/cache/files - key: dependencies-php-8.3-illuminate-10.*-composer-${{ hashFiles('composer.json') }} + key: dependencies-php-8.3-illuminate-11.*-composer-${{ hashFiles('composer.json') }} - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index d005efa..b307a13 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -21,7 +21,7 @@ jobs: uses: actions/cache@v4 with: path: ~/.composer/cache/files - key: dependencies-php-8.3-illuminate-10.*-composer-${{ hashFiles('composer.json') }} + key: dependencies-php-8.3-illuminate-11.*-composer-${{ hashFiles('composer.json') }} - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a11d8ef..48606d8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,31 +16,17 @@ jobs: strategy: fail-fast: false matrix: - php: [ 8.0, 8.1, 8.2, 8.3 ] - illuminate: [~7.29, ~8.74, ^9.0, ^10.0] + php: [ 8.1, 8.2, 8.3 ] + illuminate: [^10.0, ^11.0] stability: [prefer-lowest, prefer-stable] include: - - illuminate: ~7.29 - testbench: ~5.12 - - illuminate: ~8.74 - testbench: 6.* - - illuminate: ^9.0 - testbench: 7.* - illuminate: ^10.0 testbench: 8.* + - illuminate: ^11.0 + testbench: 9.* exclude: - php: 8.1 - illuminate: ~7.29 - - php: 8.1 - illuminate: ~6.20 - - php: 8.0 - illuminate: ^10.0 - - php: 8.2 - illuminate: ~7.29 - - php: 8.3 - illuminate: ~7.29 - - php: 8.3 - illuminate: ~8.74 + illuminate: ^11.0 name: P${{ matrix.php }} - I${{ matrix.illuminate }} - ${{ matrix.stability }} @@ -68,4 +54,4 @@ jobs: composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests - run: vendor/bin/phpunit --verbose + run: vendor/bin/phpunit diff --git a/.gitignore b/.gitignore index bd4dddb..01019ae 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ composer.phar clover.json clover.xml .phpunit.result.cache +.phpunit.cache/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9104a0f..af4442c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ ## [Unreleased](https://github.com/markwalet/laravel-git-state/compare/v1.8.0...master) +### Added +- Added support for Laravel 11 + +### Removed +- Removed support for PHP 8.0 +- Removed support for Laravel 7 +- Removed support for Laravel 8 +- Removed support for Laravel 9 + +### Changed +- Upgraded to PHPUnit 10. + ## [v1.8.0 (2023-11-27)](https://github.com/markwalet/laravel-git-state/compare/v1.7.0...v1.8.0) ### Added diff --git a/composer.json b/composer.json index 24a6aa5..6a855df 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,13 @@ ], "require": { "php": "8.*", - "laravel/framework": "~7.29|~8.74|^9.0|^10.0|^11.0", + "laravel/framework": "^10.0|^11.0", "phpoption/phpoption": ">=1.8", "webmozart/assert": "^1.10" }, "require-dev": { - "phpunit/phpunit": "~9.3", - "orchestra/testbench": "~5.12|6.*|7.*|8.*|9.*" + "phpunit/phpunit": "^10.5", + "orchestra/testbench": "8.*|9.*" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index 67c7961..c70664f 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -2,24 +2,23 @@ - + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" + cacheDirectory=".phpunit.cache" + backupStaticProperties="false"> + + + ./tests/ + + + ./src ./src/Exceptions/* - - - - ./tests/ - - +