Skip to content

Commit f4071e3

Browse files
Laravel 12.x Compatibility (#742)
1 parent ae0b14a commit f4071e3

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77
pull_request:
88
schedule:
9-
- cron: "0 0 * * *"
9+
- cron: '0 0 * * *'
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -19,8 +19,8 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
php-version: ['8.1', '8.2', '8.3']
23-
laravel-version: [10, 11]
22+
php-version: ['8.1', '8.2', '8.3', '8.4']
23+
laravel-version: [10, 11, 12]
2424
os: [ubuntu-latest, windows-latest, macos-latest]
2525
stability: [prefer-lowest, prefer-stable]
2626
experimental: [false]
@@ -29,8 +29,11 @@ jobs:
2929
php-version: 8.1
3030
- laravel-version: 11
3131
stability: prefer-lowest
32+
- laravel-version: 12
33+
php-version: 8.1
3234

3335
runs-on: ${{ matrix.os }}
36+
3437
continue-on-error: ${{ matrix.experimental }}
3538

3639
steps:
@@ -43,7 +46,7 @@ jobs:
4346
php-version: ${{ matrix.php-version }}
4447
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, fileinfo
4548
coverage: none
46-
ini-values: "memory_limit=-1"
49+
ini-values: memory_limit=-1
4750

4851
- name: Setup problem matchers for PHP
4952
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

.github/workflows/demo.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77
inputs:
88
ref:
9-
description: "The branch, tag or SHA to checkout."
9+
description: The branch, tag or SHA to checkout.
1010
required: false
1111
default: ''
1212

@@ -27,16 +27,19 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
php-version: ['8.1', '8.2', '8.3']
31-
laravel-version: ['10', '11']
30+
php-version: ['8.1', '8.2', '8.3', '8.4']
31+
laravel-version: [10, 11, 12]
3232
os: [ubuntu-latest]
3333
exclude:
3434
- laravel-version: 11
3535
php-version: 8.1
36+
- laravel-version: 12
37+
php-version: 8.1
3638

3739
runs-on: ${{ matrix.os }}
3840

3941
continue-on-error: true
42+
4043
steps:
4144
- name: Checkout code
4245
uses: actions/checkout@v4
@@ -50,7 +53,7 @@ jobs:
5053
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
5154
coverage: none
5255
tools: composer:v2
53-
ini-values: "memory_limit=-1"
56+
ini-values: memory_limit=-1
5457

5558
- name: Setup problem matchers for PHP
5659
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -88,7 +91,7 @@ jobs:
8891
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
8992
DB_DATABASE: test
9093
DB_USERNAME: root
91-
DB_PASSWORD: 'null'
94+
DB_PASSWORD: null
9295
run: |
9396
cp /home/runner/work/blueprint/blueprint/tests/fixtures/integration/TraceTest.php tests/Feature/TraceTest.php
9497
php artisan migrate:refresh --force

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
],
1010
"license": "MIT",
1111
"require": {
12-
"illuminate/console": "^10.38|^11.0",
13-
"illuminate/database": "^10.38|^11.0",
14-
"illuminate/filesystem": "^10.38|^11.0",
15-
"illuminate/support": "^10.38|^11.0",
12+
"illuminate/console": "^10.38|^11.0|^12.0",
13+
"illuminate/database": "^10.38|^11.0|^12.0",
14+
"illuminate/filesystem": "^10.38|^11.0|^12.0",
15+
"illuminate/support": "^10.38|^11.0|^12.0",
1616
"laravel-shift/faker-registry": "^0.3.0",
1717
"symfony/yaml": ">=6.2"
1818
},
1919
"require-dev": {
2020
"laravel/pint": "~1.18.0",
2121
"mockery/mockery": "^1.4.4",
22-
"orchestra/testbench": "^8.0|^9.0",
23-
"phpunit/phpunit": "^10.0"
22+
"orchestra/testbench": "^8.0|^9.0|^10.0",
23+
"phpunit/phpunit": "^10.0|^11.5.3"
2424
},
2525
"suggest": {
2626
"jasonmccreary/laravel-test-assertions": "Required to use additional assertions in generated tests (^1.0)."

0 commit comments

Comments
 (0)