Skip to content

Commit f2d7ded

Browse files
authored
Merge pull request #15 from laravel-shift/l11-compatibility
2 parents e9d8c0e + 1c6a0b7 commit f2d7ded

File tree

2 files changed

+59
-7
lines changed

2 files changed

+59
-7
lines changed

.github/workflows/test.yml

+55-3
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,105 @@ on: push
44

55
jobs:
66
phpcs:
7+
78
runs-on: ubuntu-latest
9+
10+
11+
812
steps:
913
- uses: actions/checkout@v2
14+
15+
16+
1017
- uses: shivammathur/setup-php@v2
1118
with:
1219
php-version: '8.1'
20+
21+
22+
1323
- run: composer install --no-interaction --prefer-dist
24+
25+
26+
1427
- run: vendor/bin/phpcs
1528

1629
phpstan:
30+
1731
runs-on: ubuntu-latest
32+
33+
34+
1835
steps:
1936
- uses: actions/checkout@v2
37+
38+
39+
2040
- uses: shivammathur/setup-php@v2
2141
with:
2242
php-version: '8.1'
43+
44+
45+
2346
- run: composer install --no-interaction --prefer-dist
47+
48+
49+
2450
- run: vendor/bin/phpstan analyse
2551

2652
phpunit:
2753
strategy:
2854
matrix:
29-
php: [ 8.2, 8.1 ]
30-
laravel: [ 10.*, 9.* ]
31-
os: [ ubuntu-latest ]
55+
php: [8.2, 8.1]
56+
laravel: ['9.*', '10.*', '11.*']
57+
os: [ubuntu-latest]
3258
include:
3359
- laravel: 10.*
3460
testbench: ^8.0
3561
- laravel: 9.*
3662
testbench: ^7.0
63+
- laravel: 11.*
64+
testbench: ^9.0
65+
exclude:
66+
- laravel: 11.*
67+
php: 8.1
68+
3769
runs-on: ${{ matrix.os }}
70+
3871
name: phpunit (P${{ matrix.php }} - L${{ matrix.laravel }})
72+
3973
env:
4074
DB_HOST: 127.0.0.1
75+
76+
77+
4178
steps:
4279
- uses: actions/checkout@v2
80+
81+
82+
4383
- uses: shivammathur/setup-php@v2
4484
with:
4585
php-version: ${{ matrix.php }}
86+
87+
88+
4689
- uses: shogo82148/actions-setup-mysql@v1
4790
with:
4891
mysql-version: '8.0'
4992
user: loadfile
5093
password: loadfile-testing
5194
my-cnf: local_infile=1
95+
96+
97+
5298
- run: mysql -uroot -h127.0.0.1 -e 'create database loadfile'
99+
100+
101+
53102
- run: |
54103
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
55104
composer update --no-interaction --prefer-dist
105+
106+
107+
56108
- run: vendor/bin/phpunit

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
},
2323
"require": {
2424
"php": "^8.1",
25-
"illuminate/database": "^9.0|^10.0"
25+
"illuminate/database": "^9.0|^10.0|^11.0"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": "^9",
29-
"orchestra/testbench": "^7.0|^8.0",
28+
"phpunit/phpunit": "^9|^10.5",
29+
"orchestra/testbench": "^7.0|^8.0|^9.0",
3030
"squizlabs/php_codesniffer": "^3.6",
31-
"vimeo/psalm": "^4.7",
31+
"vimeo/psalm": "^4.7|^5.22",
3232
"nunomaduro/larastan": "^2.0"
3333
},
3434
"scripts": {

0 commit comments

Comments
 (0)