Skip to content

Commit 0360382

Browse files
committed
Drop support for Laravel < 10
1 parent 07254be commit 0360382

File tree

2 files changed

+60
-6
lines changed

2 files changed

+60
-6
lines changed

.github/workflows/tests.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
php-tests:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
php: ['8.4', '8.3', '8.2']
20+
laravel: ['10.*', '11.*', '12.*']
21+
dependency-version: [prefer-stable]
22+
exclude:
23+
- php: 8.4
24+
laravel: 10.*
25+
- php: 8.4
26+
laravel: 11.*
27+
include:
28+
- laravel: 10.*
29+
testbench: 8.*
30+
- laravel: 11.*
31+
testbench: 9.*
32+
- laravel: 12.*
33+
testbench: 10.*
34+
35+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ubuntu-latest
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v4
40+
41+
- name: Setup PHP
42+
uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: ${{ matrix.php }}
45+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
46+
coverage: none
47+
48+
- name: Install dependencies
49+
run: |
50+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
51+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
52+
53+
- name: Execute tests
54+
run: vendor/bin/phpunit

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.1|^8.0",
20-
"doctrine/dbal": "~2.3|^3.3|^4.0",
19+
"php": "^8.2",
20+
"doctrine/dbal": "^3.3|^4.0",
2121
"phpdocumentor/graphviz": "^1.0",
22-
"nikic/php-parser": "^2.0|^3.0|^4.0|^5.0"
22+
"nikic/php-parser": "^4.0|^5.0"
2323
},
2424
"require-dev": {
2525
"larapack/dd": "^1.0",
26-
"orchestra/testbench": "~3.5|~3.6|~3.7|~3.8|^4.0|^7.0|^8.0|^9.0",
27-
"phpunit/phpunit": "^7.0| ^8.0|^9.5.10|^10.5|^11.0.1",
28-
"spatie/phpunit-snapshot-assertions": "^1.3|^4.2|^5.1"
26+
"orchestra/testbench": "^8.0|^9.0|^10.0",
27+
"phpunit/phpunit": "^9.5.10|^10.5|^11.0",
28+
"spatie/phpunit-snapshot-assertions": "^4.2|^5.1"
2929
},
3030
"autoload": {
3131
"psr-4": {

0 commit comments

Comments
 (0)