Skip to content

Commit 9230b80

Browse files
Laravel 12.x Compatibility (#19)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12 * Update run-tests.yml * Update composer.json * Update composer.json * Update run-tests.yml --------- Co-authored-by: Robert Allport <[email protected]>
1 parent 3a93177 commit 9230b80

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

.github/workflows/run-tests.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
name: run-tests-laravel-8-9
22

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

57
jobs:
68
tests:
7-
runs-on: ${{ matrix.os }}
9+
runs-on: ubuntu-latest
10+
811
strategy:
912
fail-fast: true
1013
matrix:
11-
os: [ubuntu-latest]
12-
php: [8.2, 8.3]
13-
laravel: ["^11.0", "^10.0"]
14+
php: [8.3, 8.2]
15+
laravel: ["^12.0", "^11.0", "^10.0"]
1416
dependency-version: [prefer-stable]
1517
include:
16-
- laravel: "^11.0"
18+
- laravel: ^12.0
19+
testbench: 10.*
20+
- laravel: ^11.0
1721
testbench: 9.*
18-
- laravel: "^10.0"
19-
testbench: 8.*
22+
- laravel: ^10.0
23+
testbench: 8.*
2024

2125
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2226

2327
steps:
2428
- name: Checkout code
2529
uses: actions/checkout@v4
26-
30+
2731
- name: Cache dependencies
2832
uses: actions/cache@v4
2933
with:
@@ -34,12 +38,16 @@ jobs:
3438
uses: shivammathur/setup-php@v2
3539
with:
3640
php-version: ${{ matrix.php }}
37-
extensions: curl, mbstring, zip, pcntl, sqlite, pdo_sqlite, iconv
41+
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
3842
coverage: none
3943

4044
- name: Install dependencies
4145
run: |
42-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
46+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" --no-interaction --no-update
4347
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
48+
49+
- name: Display PHP version
50+
run: php -v | grep ^PHP | cut -d' ' -f2
51+
4452
- name: Execute tests
4553
run: vendor/bin/phpunit --color=always tests

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
],
2222
"require": {
2323
"php": "^8.2",
24-
"illuminate/config": "^10.0|^11.0",
25-
"illuminate/container": "^10.0|^11.0",
26-
"illuminate/contracts": "^10.0|^11.0",
27-
"illuminate/database": "^10.0|^11.0"
24+
"illuminate/config": "^10.0|^11.0|^12.0",
25+
"illuminate/container": "^10.0|^11.0|^12.0",
26+
"illuminate/contracts": "^10.0|^11.0|^12.0",
27+
"illuminate/database": "^10.0|^11.0|^12.0"
2828
},
2929
"require-dev": {
30-
"orchestra/testbench": "^8.0|^9.0",
31-
"phpunit/phpunit": "^9.4|^10.1"
30+
"orchestra/testbench": "^8.0|^9.0|^10.0",
31+
"phpunit/phpunit": "^10.1|^11.5.3"
3232
},
3333
"autoload": {
3434
"psr-4": {

0 commit comments

Comments
 (0)