Skip to content

Commit

Permalink
Laravel 12.x Compatibility (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift authored Feb 11, 2025
1 parent ae0b14a commit f4071e3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
pull_request:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -19,8 +19,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']
laravel-version: [10, 11]
php-version: ['8.1', '8.2', '8.3', '8.4']
laravel-version: [10, 11, 12]
os: [ubuntu-latest, windows-latest, macos-latest]
stability: [prefer-lowest, prefer-stable]
experimental: [false]
Expand All @@ -29,8 +29,11 @@ jobs:
php-version: 8.1
- laravel-version: 11
stability: prefer-lowest
- laravel-version: 12
php-version: 8.1

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

continue-on-error: ${{ matrix.experimental }}

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

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
inputs:
ref:
description: "The branch, tag or SHA to checkout."
description: The branch, tag or SHA to checkout.
required: false
default: ''

Expand All @@ -27,16 +27,19 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']
laravel-version: ['10', '11']
php-version: ['8.1', '8.2', '8.3', '8.4']
laravel-version: [10, 11, 12]
os: [ubuntu-latest]
exclude:
- laravel-version: 11
php-version: 8.1
- laravel-version: 12
php-version: 8.1

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

continue-on-error: true

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -50,7 +53,7 @@ jobs:
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
coverage: none
tools: composer:v2
ini-values: "memory_limit=-1"
ini-values: memory_limit=-1

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
Expand Down Expand Up @@ -88,7 +91,7 @@ jobs:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
DB_DATABASE: test
DB_USERNAME: root
DB_PASSWORD: 'null'
DB_PASSWORD: null
run: |
cp /home/runner/work/blueprint/blueprint/tests/fixtures/integration/TraceTest.php tests/Feature/TraceTest.php
php artisan migrate:refresh --force
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
],
"license": "MIT",
"require": {
"illuminate/console": "^10.38|^11.0",
"illuminate/database": "^10.38|^11.0",
"illuminate/filesystem": "^10.38|^11.0",
"illuminate/support": "^10.38|^11.0",
"illuminate/console": "^10.38|^11.0|^12.0",
"illuminate/database": "^10.38|^11.0|^12.0",
"illuminate/filesystem": "^10.38|^11.0|^12.0",
"illuminate/support": "^10.38|^11.0|^12.0",
"laravel-shift/faker-registry": "^0.3.0",
"symfony/yaml": ">=6.2"
},
"require-dev": {
"laravel/pint": "~1.18.0",
"mockery/mockery": "^1.4.4",
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^10.0"
"orchestra/testbench": "^8.0|^9.0|^10.0",
"phpunit/phpunit": "^10.0|^11.5.3"
},
"suggest": {
"jasonmccreary/laravel-test-assertions": "Required to use additional assertions in generated tests (^1.0)."
Expand Down

0 comments on commit f4071e3

Please sign in to comment.