File tree Expand file tree Collapse file tree 6 files changed +55
-14
lines changed Expand file tree Collapse file tree 6 files changed +55
-14
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,33 @@ jobs:
15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
+ version : ["${{ inputs.version }}"]
18
19
php : [8.1, 8.2, 8.3]
19
- laravel : [10.*]
20
+ laravel : [10.*, 11.* ]
20
21
stability : [prefer-lowest, prefer-stable]
22
+ exclude :
23
+ # Laravel 11.x only supports PHP ^8.2
24
+ - laravel : 11.*
25
+ php : 8.1
26
+ # Laravel 11.x required MariaDB 10.10+
27
+ - laravel : 11.*
28
+ version : 10.3
29
+ - laravel : 11.*
30
+ version : 10.4
31
+ - laravel : 11.*
32
+ version : 10.5
33
+ - laravel : 11.*
34
+ version : 10.6
35
+ - laravel : 11.*
36
+ version : 10.7
37
+ - laravel : 11.*
38
+ version : 10.8
39
+ - laravel : 11.*
40
+ version : 10.9
21
41
22
42
services :
23
43
database :
24
- image : mariadb:${{ inputs .version }}
44
+ image : mariadb:${{ matrix .version }}
25
45
options : --health-cmd="healthcheck.sh --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
26
46
env :
27
47
MYSQL_ALLOW_EMPTY_PASSWORD : yes
55
75
- name : Execute tests
56
76
run : vendor/bin/pest
57
77
env :
58
- DB_CONNECTION : mysql
78
+ DB_CONNECTION : ${{ matrix.laravel == '10.*' && ' mysql' || 'mariadb' }}
59
79
DB_DATABASE : mysql
60
80
DB_USERNAME : root
Original file line number Diff line number Diff line change 16
16
fail-fast : false
17
17
matrix :
18
18
php : [8.1, 8.2, 8.3]
19
- laravel : [10.*]
19
+ laravel : [10.*, 11.* ]
20
20
stability : [prefer-lowest, prefer-stable]
21
+ exclude :
22
+ # Laravel 11.x only supports PHP ^8.2
23
+ - laravel : 11.*
24
+ php : 8.1
21
25
22
26
services :
23
27
database :
61
65
DB_DATABASE : testing
62
66
DB_USERNAME : testing
63
67
DB_PASSWORD : testing
68
+ DB_COLLATION : ${{ inputs.version == '5.7' && 'utf8mb4_general_ci' || 'utf8mb4_0900_ai_ci' }}
Original file line number Diff line number Diff line change 16
16
fail-fast : false
17
17
matrix :
18
18
php : [8.1, 8.2, 8.3]
19
- laravel : [10.*]
19
+ laravel : [10.*, 11.* ]
20
20
stability : [prefer-lowest, prefer-stable]
21
+ exclude :
22
+ # Laravel 11.x only supports PHP ^8.2
23
+ - laravel : 11.*
24
+ php : 8.1
21
25
22
26
services :
23
27
database :
56
60
run : vendor/bin/pest
57
61
env :
58
62
DB_CONNECTION : pgsql
59
- DATABASE_URL : postgresql://postgres:postgres@localhost:5432/postgres
63
+ DB_DATABASE : postgres
64
+ DB_USERNAME : postgres
65
+ DB_PASSWORD : postgres
Original file line number Diff line number Diff line change 11
11
fail-fast : false
12
12
matrix :
13
13
php : [8.1, 8.2, 8.3]
14
- laravel : [10.*]
14
+ laravel : [10.*, 11.* ]
15
15
stability : [prefer-lowest, prefer-stable]
16
+ exclude :
17
+ # Laravel 11.x only supports PHP ^8.2
18
+ - laravel : 11.*
19
+ php : 8.1
16
20
17
21
steps :
18
22
- name : Checkout code
Original file line number Diff line number Diff line change 16
16
fail-fast : false
17
17
matrix :
18
18
php : [8.1, 8.2, 8.3]
19
- laravel : [10.*]
19
+ laravel : [10.*, 11.* ]
20
20
stability : [prefer-lowest, prefer-stable]
21
+ exclude :
22
+ # Laravel 11.x only supports PHP ^8.2
23
+ - laravel : 11.*
24
+ php : 8.1
21
25
22
26
services :
23
27
database :
57
61
run : vendor/bin/pest
58
62
env :
59
63
DB_CONNECTION : sqlsrv
60
- DATABASE_URL : sqlsrv://sa:Password_123@localhost:1433/master
64
+ DB_DATABASE : master
65
+ DB_USERNAME : sa
66
+ DB_PASSWORD : Password_123
Original file line number Diff line number Diff line change 18
18
],
19
19
"require" : {
20
20
"php" : " ^8.1" ,
21
- "illuminate/contracts" : " ^10.13.1" ,
22
- "illuminate/database" : " ^10.13.1" ,
23
- "illuminate/support" : " ^10.0"
21
+ "illuminate/contracts" : " ^10.13.1|^11.0 " ,
22
+ "illuminate/database" : " ^10.13.1|^11.0 " ,
23
+ "illuminate/support" : " ^10.0|^11.0 "
24
24
},
25
25
"require-dev" : {
26
26
"larastan/larastan" : " ^2.7.0" ,
27
27
"laravel/pint" : " ^1.0" ,
28
- "nunomaduro/collision" : " ^7.0.0" ,
29
- "orchestra/testbench" : " ^8.0" ,
28
+ "nunomaduro/collision" : " ^7.0|^8 .0" ,
29
+ "orchestra/testbench" : " ^8.0|^9.0 " ,
30
30
"pestphp/pest" : " ^2.28.1" ,
31
31
"pestphp/pest-plugin-laravel" : " ^2.2.0" ,
32
32
"phpstan/extension-installer" : " ^1.1" ,
You can’t perform that action at this time.
0 commit comments