Skip to content

Commit 5412aca

Browse files
committed
chore: drop support older php and laravel versions
1 parent 59cd44e commit 5412aca

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
php: [7.3, 7.4, 8.0, 8.1]
14+
php: [8.1, 8.0]
15+
laravel: [9.*, 8.*]
16+
stability: [prefer-lowest, prefer-stable]
17+
include:
18+
- laravel: 9.*
19+
testbench: 7.*
20+
- laravel: 8.*
21+
testbench: ^6.23
1522

16-
name: PHP ${{ matrix.php }}
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
1724

1825
steps:
1926
- name: Checkout code
@@ -29,7 +36,7 @@ jobs:
2936
path: ${{ steps.composer-cache.outputs.dir }}
3037
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
3138
restore-keys: |
32-
${{ runner.os }}-${{ matrix.php }}-composer-
39+
${{ runner.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}-composer-
3340
3441
- name: Setup PHP
3542
uses: shivammathur/setup-php@v2
@@ -39,11 +46,9 @@ jobs:
3946
coverage: none
4047

4148
- name: Install dependencies
42-
uses: nick-invision/retry@v1
43-
with:
44-
timeout_minutes: 2
45-
max_attempts: 2
46-
command: composer install --prefer-dist --no-interaction --no-progress --ignore-platform-reqs
49+
run: |
50+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
51+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4752
4853
- name: Run tests
4954
run: vendor/bin/phpunit

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^7.2|^8.0",
16-
"illuminate/notifications": "^5.3|^6.0|^7.0|^8.0|^9.0",
17-
"illuminate/support": "^5.1|^6.0|^7.0|^8.0|^9.0",
15+
"php": "^8.0",
16+
"illuminate/notifications": "^8.0|^9.0",
17+
"illuminate/support": "^8.0|^9.0",
1818
"minishlink/web-push": "^6.0"
1919
},
2020
"require-dev": {
2121
"mockery/mockery": "~1.0",
22-
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
23-
"phpunit/phpunit": "^8.5|^9.0"
22+
"orchestra/testbench": "^6.0|^7.0",
23+
"phpunit/phpunit": "^9.0"
2424
},
2525
"autoload": {
2626
"psr-4": {

0 commit comments

Comments
 (0)