From 8f2d156157ea69e82c642b94ef81febf88ad5ade Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 01:24:34 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 11 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b88bf2d..a7b67f7 100644 --- a/composer.json +++ b/composer.json @@ -3,13 +3,13 @@ "description": "Postgis extensions for laravel. Aims to make it easy to work with geometries from laravel models", "require": { "php": ">=7.1", - "illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", "geo-io/wkb-parser": "^1.0", "jmikola/geojson": "^1.0", "bosnadev/database": "^0.21|dev-master" }, "require-dev": { - "illuminate/pagination": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/pagination": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", "phpunit/phpunit": ">=8.5.23", "mockery/mockery": "^1.3" }, From cc355fdcff3b27b21ed640a8cfe0b880e0833e86 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 01:24:34 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 11 --- .github/workflows/run-tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f78dd13..00685b8 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: - php: [8.1 8.0 7.4] + php: ['8.1 8.0 7.4', '8.2'] release: [stable, lowest] services: @@ -26,16 +26,20 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/cache@v1 with: path: ~/.composer/cache/files key: php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} + - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: pecl extensions: mbstring, dom, fileinfo, pgsql, intl coverage: ${{ matrix.coverage }} + - run: composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-${{ matrix.release }} + - run: | vendor/bin/phpunit