From 077b7eb82faff9514d56903bc97f0b25fcd3c049 Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Sun, 19 Dec 2021 18:03:07 +0100 Subject: [PATCH 1/4] Support for PHP 8.1 --- .github/workflows/run-tests.yml | 45 ++++++++++++++++++--------------- composer.json | 4 +-- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 470d98e..f4d1a17 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,35 +8,38 @@ jobs: strategy: fail-fast: true matrix: - php: [8.0, 7.4] + php: [8.1, 8.0, 7.4] laravel: [8.*, 7.*] framework: [tailwind, tailwind-2, bootstrap-4, bootstrap-5] dependency-version: [prefer-lowest, prefer-stable] include: - - laravel: 8.* - testbench: 6.* - - laravel: 7.* - testbench: 5.* + - laravel: 8.* + testbench: 6.* + - laravel: 7.* + testbench: 5.* + exclude: + - laravel: 7.* + php: 8.1 name: P${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }} - Front-end Framework ${{ matrix.framework }} steps: - - name: Checkout code - uses: actions/checkout@v2 + - 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 - env: - FORM_COMPONENTS_FRAMEWORK: ${{ matrix.framework }} - run: vendor/bin/phpunit \ No newline at end of file + - name: Execute tests + env: + FORM_COMPONENTS_FRAMEWORK: ${{ matrix.framework }} + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 7212b9b..8fc921d 100644 --- a/composer.json +++ b/composer.json @@ -29,8 +29,8 @@ } ], "require": { - "php": "^7.4 || ^8.0", - "illuminate/support": "^7.22.4 || ^8.0", + "php": "^7.4 || ^8.0 || ^8.1", + "illuminate/support": "^8.0", "symfony/http-foundation": "^5.1.2" }, "require-dev": { From 6ed4621d4e21e65b245c7d927be2dd05fb8909d7 Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Sun, 19 Dec 2021 18:04:33 +0100 Subject: [PATCH 2/4] Update run-tests.yml --- .github/workflows/run-tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f4d1a17..be45875 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,14 +9,12 @@ jobs: fail-fast: true matrix: php: [8.1, 8.0, 7.4] - laravel: [8.*, 7.*] + laravel: [8.*] framework: [tailwind, tailwind-2, bootstrap-4, bootstrap-5] dependency-version: [prefer-lowest, prefer-stable] include: - laravel: 8.* testbench: 6.* - - laravel: 7.* - testbench: 5.* exclude: - laravel: 7.* php: 8.1 From d2ef172acbdc81effcda4a8d3ea69e3ef93553f2 Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Sun, 19 Dec 2021 18:14:50 +0100 Subject: [PATCH 3/4] Update composer.json --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8fc921d..ba59a14 100644 --- a/composer.json +++ b/composer.json @@ -30,14 +30,14 @@ ], "require": { "php": "^7.4 || ^8.0 || ^8.1", - "illuminate/support": "^8.0", + "illuminate/support": "^8.67", "symfony/http-foundation": "^5.1.2" }, "require-dev": { "livewire/livewire": "^2.0", "mockery/mockery": "^1.3.3", - "orchestra/testbench-browser-kit": "^5.1 || ^6.0", - "phpunit/phpunit": "^8.5 || ^9.0", + "orchestra/testbench-browser-kit": "^6.23", + "phpunit/phpunit": "^9.5", "spatie/laravel-translatable": "^4.4", "symfony/dom-crawler": "^5.1.14" }, From 812b33ffab0372986c661ae99d460d62872b53da Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Sun, 19 Dec 2021 18:18:12 +0100 Subject: [PATCH 4/4] Update CHANGELOG.md --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cea4dcf..cc7ac19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `laravel-form-components` will be documented in this file +## 3.3.0 - 2021-12-19 + +- Support for PHP 8.1 +- Dropped support for Laravel 7 + ## 3.2.0 - 2021-11-01 - Support for `select` placeholder