diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 56fcbcc..b8d9340 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,15 +4,15 @@ on: [push] jobs: tests: - runs-on: ubuntu-latest strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4] - stability: [prefer-lowest, prefer-stable] + php: [7.3, 7.4] + laravel: [6.*, 7.*, 8.*] + dependency-version: [prefer-lowest, prefer-stable] - name: P${{ matrix.php }} - S${{ matrix.stability }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - S${{ matrix.stability }} steps: - name: Checkout code @@ -32,7 +32,9 @@ jobs: coverage: none - name: Install dependencies - run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest + run: | + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update + composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest - name: Execute tests run: vendor/bin/phpunit --verbose diff --git a/README.md b/README.md index d568054..841eb42 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Allows you to use [Twig](https://twig.symfony.com/) in [Laravel](https://laravel ## Requirements -- PHP >= 7.2.0 +- PHP >= 7.3.0 - Laravel >= 6.x ## Installation diff --git a/composer.json b/composer.json index a0b51a6..6b94b8f 100644 --- a/composer.json +++ b/composer.json @@ -12,15 +12,14 @@ } ], "require": { - "php": "^7.2.0", - "ext-json": "*", - "illuminate/console": "^6", - "illuminate/support": "^6", - "illuminate/view": "^6", + "php": "^7.3.0", + "illuminate/console": "^6|^7|^8", + "illuminate/support": "^6|^7|^8", + "illuminate/view": "^6|^7|^8", "twig/twig": "~3.0" }, "require-dev": { - "laravel/framework": "^6", + "laravel/framework": "^6|^7|^8", "mockery/mockery": "^1.3.1", "phpunit/phpunit": "^8.4|^9.0" },