Skip to content

Commit bbf3a71

Browse files
committed
Drop older PHP and Laravel versions
1 parent 26129e6 commit bbf3a71

File tree

2 files changed

+15
-50
lines changed

2 files changed

+15
-50
lines changed

.github/workflows/run-tests.yml

Lines changed: 14 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,22 @@ on:
1010

1111
jobs:
1212
php-tests:
13-
runs-on: ${{ matrix.os }}
13+
runs-on: ubuntu-latest
1414

1515
strategy:
1616
matrix:
17-
php: [8.1, 8.0, 7.4, 7.3]
18-
laravel: [9.*, 8.*, 7.*, 6.*, 5.8.*, 5.7.*, 5.6.*]
19-
os: [ubuntu-latest]
20-
include:
21-
- laravel: 9.*
22-
testbench: 7.*
23-
- laravel: 8.*
24-
testbench: 6.*
25-
- laravel: 7.*
26-
testbench: 5.*
27-
- laravel: 6.*
28-
testbench: 4.*
29-
- laravel: 5.8.*
30-
testbench: 3.8.*
31-
- laravel: 5.7.*
32-
testbench: 3.7.*
33-
- laravel: 5.6.*
34-
testbench: 3.6.*
35-
exclude:
36-
- laravel: 9.*
37-
php: 7.3
38-
- laravel: 9.*
39-
php: 7.4
40-
- laravel: 5.7.*
41-
php: 7.4
42-
- laravel: 5.6.*
43-
php: 7.4
44-
- laravel: 5.5.*
45-
php: 7.4
46-
- laravel: 5.8.*
47-
php: 8.0
48-
- laravel: 5.7.*
49-
php: 8.0
50-
- laravel: 5.6.*
51-
php: 8.0
52-
- laravel: 5.6.*
53-
php: 8.1
54-
- laravel: 5.7.*
55-
php: 8.1
56-
- laravel: 5.8.*
57-
php: 8.1
58-
- laravel: 6.*
59-
php: 8.1
60-
- laravel: 7.*
61-
php: 8.1
17+
payload:
18+
- { queue: 'github-actions-laravel9-php81', laravel: '9.*', php: '8.1', 'testbench': '7.*'}
19+
- { queue: 'github-actions-laravel9-php80', laravel: '9.*', php: '8.0', 'testbench': '7.*'}
20+
- { queue: 'github-actions-laravel8-php81', laravel: '8.*', php: '8.1', 'testbench': '6.*'}
21+
- { queue: 'github-actions-laravel8-php80', laravel: '8.*', php: '8.0', 'testbench': '6.*'}
22+
- { queue: 'github-actions-laravel8-php74', laravel: '8.*', php: '7.4', 'testbench': '6.*'}
23+
- { queue: 'github-actions-laravel7-php80', laravel: '7.*', php: '8.0', 'testbench': '5.*' }
24+
- { queue: 'github-actions-laravel7-php74', laravel: '7.*', php: '7.4', 'testbench': '5.*' }
25+
- { queue: 'github-actions-laravel6-php80', laravel: '6.*', php: '8.0', 'testbench': '4.*' }
26+
- { queue: 'github-actions-laravel6-php74', laravel: '6.*', php: '7.4', 'testbench': '4.*' }
6227

63-
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
28+
name: PHP ${{ matrix.payload.php }} - Laravel ${{ matrix.payload.laravel }}
6429

6530
steps:
6631
- name: Checkout code
@@ -69,13 +34,13 @@ jobs:
6934
- name: Setup PHP
7035
uses: shivammathur/setup-php@v2
7136
with:
72-
php-version: ${{ matrix.php }}
37+
php-version: ${{ matrix.payload.php }}
7338
extensions: mbstring, dom, fileinfo
7439
coverage: none
7540

7641
- name: Install dependencies
7742
run: |
78-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
43+
composer require "laravel/framework:${{ matrix.payload.laravel }}" "orchestra/testbench:${{ matrix.payload.testbench }}" --no-interaction --no-update
7944
composer update --prefer-stable --prefer-dist --no-interaction --ignore-platform-reqs
8045
- name: Execute tests
8146
run: vendor/bin/phpunit

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"require-dev": {
1616
"mockery/mockery": "^1.3",
17-
"orchestra/testbench": "^3.5 || ^3.6 || ^3.7 || ^3.8 || ^4.0 || ^5.0",
17+
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
1818
"psr/log": "^1.1",
1919
"spatie/macroable": "^1.0"
2020
},

0 commit comments

Comments
 (0)