Skip to content

Commit f49bd5b

Browse files
authored
Support Laravel 8 (#222)
* Update for laravel 8 * Update readme
1 parent 7659eaa commit f49bd5b

File tree

8 files changed

+5553
-2201
lines changed

8 files changed

+5553
-2201
lines changed

.github/workflows/run-tests.yml

+3-18
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7-
runs-on: ${{ matrix.os }}
8-
strategy:
9-
fail-fast: true
10-
matrix:
11-
php: [7.2, 7.3, 7.4]
12-
os: [ubuntu-latest]
13-
laravel: [6.*, 7.*]
14-
include:
15-
- laravel: 6.*
16-
testbench: 4.*
17-
- laravel: 7.*
18-
testbench: 5.*
19-
20-
name: PHP${{ matrix.php }} - ${{ matrix.dependency-version }}
7+
runs-on: ubuntu-latest
218

229
steps:
2310
- name: Checkout code
@@ -26,14 +13,12 @@ jobs:
2613
- name: Setup PHP
2714
uses: shivammathur/setup-php@v2
2815
with:
29-
php-version: ${{ matrix.php }}
16+
php-version: 8.0
3017
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
3118
coverage: none
3219

3320
- name: Install Composer dependencies
34-
run: |
35-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
36-
composer update --prefer-dist --no-interaction --no-suggest
21+
run: composer install --prefer-dist --no-interaction
3722

3823
- name: Execute tests
3924
run: vendor/bin/phpunit

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.2|^7.3|^7.4",
14-
"illuminate/support": "^6.0|^7.0"
13+
"php": "^8.0",
14+
"illuminate/support": "^8.0",
15+
"laravel/legacy-factories": "^1.3"
1516
},
1617
"require-dev": {
17-
"orchestra/testbench": "^4.0",
18-
"phpunit/phpunit": "^8.0",
18+
"orchestra/testbench": "^6.0",
19+
"phpunit/phpunit": "^9.0",
1920
"mockery/mockery": "^1.0.0"
2021
},
2122
"autoload": {

0 commit comments

Comments
 (0)