Skip to content

Commit

Permalink
Support for PHP 8.1 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored Dec 19, 2021
1 parent 768e40c commit 2e81dd3
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 37 deletions.
58 changes: 27 additions & 31 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,36 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.0, 7.4, 7.3]
laravel: [8.*, 7.*, 6.*]
php: [8.1, 8.0, 7.4]
laravel: [8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
- laravel: 6.*
testbench: 4.*
- laravel: 8.*
testbench: 6.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- 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: Execute tests
run: vendor/bin/phpunit
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- 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: Execute tests
run: vendor/bin/phpunit
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to `laravel-blade-on-demand` will be documented in this file

## 1.4.0 - 2021-12-19

- Support for PHP 8.1
- Dropped support for PHP 7.3
- Dropped support for Laravel 6 and 7

## 1.3.0 - 2020-10-31

- Support for PHP 8.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Quality Score](https://img.shields.io/scrutinizer/g/protonemedia/laravel-blade-on-demand.svg?style=flat-square)](https://scrutinizer-ci.com/g/protonemedia/laravel-blade-on-demand)
[![Total Downloads](https://img.shields.io/packagist/dt/protonemedia/laravel-blade-on-demand.svg?style=flat-square)](https://packagist.org/packages/protonemedia/laravel-blade-on-demand)

Laravel package to compile Blade templates in memory. Requires PHP 7.3 or higher, compatible with Laravel 6 and higher.
Laravel package to compile Blade templates in memory. Requires PHP 7.4 or higher, compatible with Laravel 8.

## Support

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"illuminate/mail": "^6.0 || ^7.0 || ^8.0",
"illuminate/view": "^6.0 || ^7.0 || ^8.0"
"php": "^7.4 || ^8.0 || ^8.1",
"illuminate/mail": "^8.67",
"illuminate/view": "^8.67"
},
"require-dev": {
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
"phpunit/phpunit": "^8.5 || ^9.0"
"orchestra/testbench": "^6.23",
"phpunit/phpunit": "^9.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 2e81dd3

Please sign in to comment.