Skip to content

Commit cc92731

Browse files
authored
Merge pull request #103 from laravel-shift/l11-compatibility
Laravel 11.x Compatibility
2 parents 4e0ab18 + 4249c37 commit cc92731

File tree

2 files changed

+51
-43
lines changed

2 files changed

+51
-43
lines changed

.github/workflows/run-tests.yml

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,51 @@
11
name: run-tests
22

3-
on: [push, pull_request]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
6-
test:
7-
8-
runs-on: ubuntu-latest
9-
strategy:
10-
fail-fast: true
11-
matrix:
12-
php: [8.2, 8.1, 8.0]
13-
laravel: [9.*, 10.*]
14-
dependency-version: [prefer-stable]
15-
include:
16-
- laravel: 9.*
17-
testbench: ^7.0
18-
- laravel: 10.*
19-
testbench: ^8.0
20-
exclude:
21-
- laravel: 10.*
22-
php: 8.0
23-
24-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
25-
26-
steps:
27-
- name: Checkout code
28-
uses: actions/checkout@v3
29-
30-
- name: Setup PHP
31-
uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: ${{ matrix.php }}
34-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
35-
coverage: none
36-
37-
- name: Install dependencies
38-
run: |
39-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
41-
42-
- name: Execute tests
43-
run: vendor/bin/pest
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [8.2, 8.1, 8.0]
15+
laravel: ['9.*', '10.*', '11.*']
16+
dependency-version: [prefer-stable]
17+
include:
18+
- laravel: 9.*
19+
testbench: ^7.0
20+
- laravel: 10.*
21+
testbench: ^8.0
22+
- laravel: 11.*
23+
testbench: ^9.0
24+
exclude:
25+
- laravel: 10.*
26+
php: 8.0
27+
- laravel: 11.*
28+
php: 8.1
29+
- laravel: 11.*
30+
php: 8.0
31+
32+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
33+
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v3
37+
38+
- name: Setup PHP
39+
uses: shivammathur/setup-php@v2
40+
with:
41+
php-version: ${{ matrix.php }}
42+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
43+
coverage: none
44+
45+
- name: Install dependencies
46+
run: |
47+
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
48+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
49+
50+
- name: Execute tests
51+
run: vendor/bin/pest

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
],
3636
"require": {
3737
"php": "^8.0",
38-
"laravel/framework": "^8.0|^9.0|^10.0"
38+
"laravel/framework": "^8.0|^9.0|^10.0|^11.0"
3939
},
4040
"require-dev": {
4141
"mockery/mockery": "^1.4",
42-
"orchestra/testbench": "^6.23|^7.0|^8.0",
43-
"pestphp/pest": "^1.22",
44-
"pestphp/pest-plugin-laravel": "^1.3"
42+
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
43+
"pestphp/pest": "^1.22|^2.34",
44+
"pestphp/pest-plugin-laravel": "^1.3|^2.3"
4545
},
4646
"autoload": {
4747
"psr-4": {

0 commit comments

Comments
 (0)