Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Support for PHP 8.1 #72

Merged
merged 4 commits into from
Dec 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,36 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.0, 7.4]
laravel: [8.*, 7.*]
php: [8.1, 8.0, 7.4]
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.*
- laravel: 8.*
testbench: 6.*
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
- name: Execute tests
env:
FORM_COMPONENTS_FRAMEWORK: ${{ matrix.framework }}
run: vendor/bin/phpunit
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"illuminate/support": "^7.22.4 || ^8.0",
"php": "^7.4 || ^8.0 || ^8.1",
"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"
},
Expand Down