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 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" },