diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c33c590..fcea479 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: true matrix: - php: ['8.1', '8.0'] + php: ['8.2', '8.1'] laravel: ['9.*', '8.*'] include: - laravel: '9.*' @@ -53,13 +53,13 @@ jobs: # Lower PHP and laravel versions. - name: PHPUnit without code coverage - if: matrix.php != '8.1' || matrix.laravel != '9.*' + if: matrix.php != '8.2' || matrix.laravel != '9.*' run: vendor/bin/testbench package:test --parallel --no-coverage # Last PHP and laravel versions. - name: Code analysis - if: matrix.php == '8.1' && matrix.laravel == '9.*' + if: matrix.php == '8.2' && matrix.laravel == '9.*' run: | # Remove this line once Larastan and Livewire are working well together sed -i -e 's#.*protected \$enablesPackageDiscoveries.*#&\nprotected function overrideApplicationBindings($app){return["brickables"=>"Okipa\\\\LaravelBrickables\\\\Brickables"];}#' vendor/nunomaduro/larastan/src/ApplicationResolver.php @@ -68,13 +68,13 @@ jobs: vendor/bin/phpstan analyse - name: PHPUnit with code coverage - if: matrix.php == '8.1' && matrix.laravel == '9.*' + if: matrix.php == '8.2' && matrix.laravel == '9.*' run: | mkdir -p build/logs vendor/bin/testbench package:test --parallel --coverage-text --coverage-clover build/logs/clover.xml - name: Code coverage upload to Coveralls - if: env.COVERALLS_REPO_TOKEN && matrix.php == '8.1' && matrix.laravel == '9.*' + if: env.COVERALLS_REPO_TOKEN && matrix.php == '8.2' && matrix.laravel == '9.*' env: COVERALLS_RUN_LOCALLY: 1 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index af71b8b..21e256a 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.1.0](https://github.com/Okipa/laravel-brickables/compare/3.0.1...3.1.0) + +2022-12-23 + +* Added PHP 8.2 support +* Dropped PHP 8.0 support + ## [3.0.1](https://github.com/Okipa/laravel-brickables/compare/3.0.0...3.0.1) 2022-10-27 diff --git a/README.md b/README.md index 1b1ae6b..f1510f0 100755 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ Found this package helpful? Please consider supporting my work! | Laravel version | PHP version | Package version | |---|---|---| +| ^8.0 | ^9.0 | ^8.1 | ^8.2 | ^3.1 | | ^8.0 | ^9.0 | ^8.0 | ^8.1 | ^3.0 | | ^7.0 | ^8.0 | ^7.4 | ^8.0 | ^2.0 | | ^5.8 | ^6.0 | ^7.0 | ^7.1 | ^7.2 | ^7.3 | ^7.4 | ^1.0 | diff --git a/composer.json b/composer.json index 1672e59..29cb8c3 100755 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ } ], "require": { - "php": "^8.0|^8.1", + "php": "^8.1|^8.2", "illuminate/contracts": "^8.0|^9.0", "spatie/eloquent-sortable": "^3.10.0|^4.0.1" }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 4ec21cd..d1a0235 100755 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -32,5 +32,13 @@ + + + + + + + + diff --git a/tests/TestCase.php b/tests/TestCase.php index d824545..def132b 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -8,17 +8,6 @@ abstract class TestCase extends Orchestra { - protected function getEnvironmentSetUp($app): void - { - // Setup default database to use sqlite :memory: - $app['config']->set('database.default', 'testing'); - $app['config']->set('database.connections.testing', [ - 'driver' => 'sqlite', - 'database' => ':memory:', - 'prefix' => '', - ]); - } - protected function getPackageProviders($app): array { return [BrickablesServiceProvider::class];