Skip to content

Commit

Permalink
Support for PHP 8.0 (#1)
Browse files Browse the repository at this point in the history
* Update composer.json
* Drop support for Laravel 6 and 7
  • Loading branch information
pascalbaljet committed Nov 27, 2020
1 parent 3b787be commit 093c1c3
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 52 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: run-tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.0, 7.4]
laravel: [8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: 6.*

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

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: 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
4 changes: 0 additions & 4 deletions .styleci.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

## Installation

This package requires PHP 7.4 and Laravel 6.0 or higher. You can install the package via composer:
Only the master branch and version 3.0 of this package are compatible with Laravel 8.0. If you're still using an older version of Laravel (or PHP < 7.4), please use the 2.x branch. Mind that older versions are no longer supported.

You can install the package via composer:

```bash
composer require protonemedia/laravel-mixins
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
}
],
"require": {
"php": "^7.4",
"illuminate/support": "^6.0 || ^7.0 || ^8.0"
"php": "^7.4 || ^8.0",
"illuminate/support": "^8.0"
},
"require-dev": {
"html2text/html2text": "^4.3",
"laravel/ui": "^1.0 || ^2.0",
"mockery/mockery": "^1.3",
"laravel/ui": "^2.0 || ^3.0",
"mockery/mockery": "^1.3.3",
"moneyphp/money": "^3.3",
"orchestra/testbench": "^4.2 || ^5.0 || ^6.0",
"phpunit/phpunit": "^8.5",
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.0",
"spatie/laravel-sitemap": "^5.7",
"symfony/process": "^4.3 || ^5.1"
"symfony/process": "^5.1"
},
"suggest": {
"html2text/html2text": "To convert HTML to formatted plain text",
Expand Down

0 comments on commit 093c1c3

Please sign in to comment.