Skip to content

Commit

Permalink
added: laravel 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhquochan committed Sep 28, 2020
1 parent 221f457 commit f041b6e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on: [push]

jobs:
tests:

runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4]
stability: [prefer-lowest, prefer-stable]
php: [7.3, 7.4]
laravel: [6.*, 7.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - S${{ matrix.stability }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - S${{ matrix.stability }}

steps:
- name: Checkout code
Expand All @@ -32,7 +32,9 @@ jobs:
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit --verbose
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Allows you to use [Twig](https://twig.symfony.com/) in [Laravel](https://laravel

## Requirements

- PHP >= 7.2.0
- PHP >= 7.3.0
- Laravel >= 6.x

## Installation
Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
}
],
"require": {
"php": "^7.2.0",
"ext-json": "*",
"illuminate/console": "^6",
"illuminate/support": "^6",
"illuminate/view": "^6",
"php": "^7.3.0",
"illuminate/console": "^6|^7|^8",
"illuminate/support": "^6|^7|^8",
"illuminate/view": "^6|^7|^8",
"twig/twig": "~3.0"
},
"require-dev": {
"laravel/framework": "^6",
"laravel/framework": "^6|^7|^8",
"mockery/mockery": "^1.3.1",
"phpunit/phpunit": "^8.4|^9.0"
},
Expand Down

0 comments on commit f041b6e

Please sign in to comment.