WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 7f8b5e8

Browse files
authored
Add support for laravel 11 (#514)
* chore: add support for laravel 11 * chore: fixed testbench version
1 parent ed8ed4c commit 7f8b5e8

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed

.github/workflows/run-tests.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,35 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.2, 8.1]
13-
laravel: [10.*]
12+
php: [8.3, 8.2, 8.1]
13+
laravel: ["^11.0", "^10.0"]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16-
- laravel: 10.*
17-
testbench: 8.*
16+
- laravel: "^10.0"
17+
testbench: "^8.0"
18+
- laravel: "^11.0"
19+
testbench: "^9.0"
20+
exclude:
21+
- laravel: "^11.0"
22+
php: 8.1
1823

1924
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
2025

2126
steps:
22-
- name: Checkout code
23-
uses: actions/checkout@v4
27+
- name: Checkout code
28+
uses: actions/checkout@v4
2429

25-
- name: Setup PHP
26-
uses: shivammathur/setup-php@v2
27-
with:
28-
php-version: ${{ matrix.php }}
29-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
30-
coverage: none
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
3136

32-
- name: Install dependencies
33-
run: |
34-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
35-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
37+
- name: Install dependencies
38+
run: |
39+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
3641
37-
- name: Execute tests
38-
run: vendor/bin/pest
42+
- name: Execute tests
43+
run: vendor/bin/pest

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
"require": {
2323
"php": "^8.1",
2424
"google/analytics-data": "^0.9.4",
25-
"laravel/framework": "^10.0",
25+
"laravel/framework": "^10.0|^11.0",
2626
"nesbot/carbon": "^2.66",
2727
"spatie/laravel-package-tools": "^1.13.7",
28-
"symfony/cache": "^6.0"
28+
"symfony/cache": "^6.0|^7.0"
2929
},
3030
"require-dev": {
3131
"league/flysystem": "^3.0",
3232
"mockery/mockery": "^1.5",
33-
"orchestra/testbench": "^8.0",
33+
"orchestra/testbench": "^8.0|^9.0",
3434
"pestphp/pest": "^2.0",
3535
"spatie/ray": "^1.37"
3636
},

0 commit comments

Comments
 (0)