From c8e21649ad372d309eeb62a8f771aa4c7cd0089e Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Fri, 4 Feb 2022 11:50:58 +0100 Subject: [PATCH] Support for Laravel 9 (#60) --- .github/workflows/php.yml | 59 +++++++++++++++++++++------------------ README.md | 2 +- composer.json | 6 ++-- 3 files changed, 36 insertions(+), 31 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index e0d291d..420db50 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -3,35 +3,40 @@ name: run-tests on: [push, pull_request] jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - php: [8.1, 8.0, 7.4] - laravel: [8.*] - dependency-version: [prefer-lowest, prefer-stable] - include: - - laravel: 8.* - testbench: 6.* + test: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [8.1, 8.0, 7.4] + laravel: [9.*, 8.*] + dependency-version: [prefer-lowest, prefer-stable] + exclude: + - laravel: 9.* + php: 7.4 + include: + - laravel: 9.* + testbench: 7.* + - laravel: 8.* + testbench: 6.* - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - steps: - - name: Checkout code - uses: actions/checkout@v2 + steps: + - name: Checkout code + uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql - coverage: none + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql + coverage: none - - name: Install dependencies - run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest + - name: Install dependencies + run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest - - name: Execute tests - run: vendor/bin/phpunit + - name: Execute tests + run: vendor/bin/phpunit diff --git a/README.md b/README.md index d3fca54..713cf46 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ We proudly support the community by developing Laravel packages and giving them ## Compatibility * [Vue 2.6](https://vuejs.org/v2/guide/installation.html) and [Vue 3](https://v3.vuejs.org/guide/installation.html) -* [Laravel 8](https://laravel.com/) +* [Laravel 8 or 9](https://laravel.com/) * [Inertia.js](https://inertiajs.com/) * [Tailwind CSS v2](https://tailwindcss.com/) + [Forms plugin](https://github.com/tailwindlabs/tailwindcss-forms) * PHP 7.4 + 8.0 + 8.1 diff --git a/composer.json b/composer.json index a7e8617..5efd13e 100644 --- a/composer.json +++ b/composer.json @@ -12,11 +12,11 @@ ], "require": { "php": "^7.4|^8.0|^8.1", - "illuminate/support": "^8.67" + "illuminate/support": "^8.67|^v9.0.0-beta.4" }, "require-dev": { - "inertiajs/inertia-laravel": "^0.4.5", - "orchestra/testbench": "^6.23", + "inertiajs/inertia-laravel": "^0.5", + "orchestra/testbench": "^6.23|^7.0", "phpunit/phpunit": "^9.4" }, "autoload": {