Skip to content

Commit d424506

Browse files
authored
Support for Laravel 9, drop PHP <= 7.4 (#66)
* Support for Laravel 9, drop PHP <= 7.4 * Rename tests
1 parent 12d6b43 commit d424506

File tree

2 files changed

+15
-27
lines changed

2 files changed

+15
-27
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,13 @@ on:
99

1010
jobs:
1111
phpunit:
12-
name: Tests PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
12+
name: Tests PHP ${{ matrix.php }}
1313
runs-on: ubuntu-latest
1414

1515
strategy:
1616
fail-fast: true
1717
matrix:
18-
php: [7.2, 7.3, 7.4]
19-
laravel: ["6.*", "7.*", "8.*"]
20-
exclude:
21-
- laravel: "8.*"
22-
php: 7.2
23-
- laravel: "7.*"
24-
php: 7.2
18+
php: [8.0, 8.1, 8.2]
2519

2620
steps:
2721
- uses: actions/checkout@v2
@@ -32,7 +26,7 @@ jobs:
3226
uses: actions/cache@v1
3327
with:
3428
path: ~/.composer/cache/files
35-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
3630

3731
- name: Setup PHP
3832
uses: shivammathur/setup-php@v2
@@ -43,13 +37,7 @@ jobs:
4337

4438
- name: Install dependencies
4539
run: |
46-
composer require "illuminate/auth:${{ matrix.laravel }}" --no-update
47-
composer require "illuminate/console:${{ matrix.laravel }}" --no-update
48-
composer require "illuminate/contracts:${{ matrix.laravel }}" --no-update
49-
composer require "illuminate/database:${{ matrix.laravel }}" --no-update
50-
composer require "illuminate/events:${{ matrix.laravel }}" --no-update
51-
composer require "illuminate/support:${{ matrix.laravel }}" --no-update
52-
composer require "illuminate/view:${{ matrix.laravel }}" --prefer-dist --no-interaction
40+
composer install
5341
5442
- name: Run Testsuite
5543
run: ./vendor/bin/phpunit

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
"license": "MIT",
66
"type": "project",
77
"require": {
8-
"php": ">=7.2.5",
9-
"illuminate/auth": "6.*|7.*|8.*",
10-
"illuminate/console": "6.*|7.*|8.*",
11-
"illuminate/contracts": "6.*|7.*|8.*",
12-
"illuminate/database": "6.*|7.*|8.*",
13-
"illuminate/events": "6.*|7.*|8.*",
14-
"illuminate/support": "6.*|7.*|8.*",
15-
"illuminate/view": "6.*|7.*|8.*"
8+
"php": "^8.0.2",
9+
"illuminate/auth": "9.*",
10+
"illuminate/console": "9.*",
11+
"illuminate/contracts": "9.*",
12+
"illuminate/database": "9.*",
13+
"illuminate/events": "9.*",
14+
"illuminate/support": "9.*",
15+
"illuminate/view": "9.*"
1616
},
1717
"require-dev": {
18-
"mockery/mockery": "^1.3.1",
19-
"phpunit/phpunit": "^8.5|^9.0",
20-
"orchestra/testbench": "^4.13|^5.0|^6.0"
18+
"mockery/mockery": "^1.4.4",
19+
"phpunit/phpunit": "^9.5.10",
20+
"orchestra/testbench": "^7.0"
2121
},
2222
"autoload": {
2323
"classmap": [

0 commit comments

Comments
 (0)