Skip to content

Commit 23deb15

Browse files
authored
Merge pull request #42 from foxbytehq/feature/laravel-13-upgrade
Upgrade to Laravel 13 with comprehensive test suite
2 parents aea83e8 + 7fdc590 commit 23deb15

18 files changed

+553
-232
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/claude.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/php-cs-fixer.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/phpstan.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/run-tests.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: true
17+
matrix:
18+
php: [8.4, 8.3]
19+
laravel: ['12.*', '13.*']
20+
stability: [prefer-lowest, prefer-stable]
21+
include:
22+
- laravel: 12.*
23+
testbench: 10.*
24+
- laravel: 13.*
25+
testbench: 11.*
26+
27+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v6
32+
33+
- name: Cache dependencies
34+
uses: actions/cache@v5
35+
with:
36+
path: ~/.composer/cache/files
37+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
38+
39+
- name: Setup PHP
40+
uses: shivammathur/setup-php@v2
41+
with:
42+
php-version: ${{ matrix.php }}
43+
44+
- name: Install dependencies
45+
run: |
46+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
47+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
48+
49+
- name: Execute tests
50+
run: vendor/bin/pest

.php_cs.dist.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

composer.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,18 @@
2222
"inertiajs/inertia-laravel": "Needed for basic inertia functionality"
2323
},
2424
"require": {
25-
"php": "^8.2",
25+
"php": "^8.3",
2626
"spatie/laravel-package-tools": "^1.14.0",
27-
"illuminate/contracts": "^11.0|^12.0"
27+
"illuminate/contracts": "^12.0|^13.0"
2828
},
2929
"require-dev": {
30-
"inertiajs/inertia-laravel": "^1.0|^2.0",
30+
"inertiajs/inertia-laravel": "^2.0.15",
3131
"jetbrains/phpstorm-attributes": "^1.0",
32-
"nunomaduro/collision": "^v8.1",
33-
"larastan/larastan": "^v2.9",
34-
"orchestra/testbench": "^v9.0",
35-
"pestphp/pest": "^v2.34",
36-
"pestphp/pest-plugin-laravel": "^v2.3",
37-
"phpstan/extension-installer": "^1.1",
38-
"phpstan/phpstan-deprecation-rules": "^1.0",
39-
"phpstan/phpstan-phpunit": "^1.0",
40-
"phpunit/phpunit": "^10.5"
32+
"nunomaduro/collision": "^8.9.1",
33+
"orchestra/testbench": "^10.0|^11.0",
34+
"pestphp/pest": "^4.0",
35+
"pestphp/pest-plugin-laravel": "^4.0",
36+
"phpunit/phpunit": "^12.0"
4137
},
4238
"autoload": {
4339
"psr-4": {
@@ -50,15 +46,13 @@
5046
}
5147
},
5248
"scripts": {
53-
"analyse": "vendor/bin/phpstan analyse",
5449
"test": "vendor/bin/pest",
5550
"test-coverage": "vendor/bin/pest --coverage"
5651
},
5752
"config": {
5853
"sort-packages": true,
5954
"allow-plugins": {
60-
"pestphp/pest-plugin": true,
61-
"phpstan/extension-installer": true
55+
"pestphp/pest-plugin": true
6256
}
6357
},
6458
"extra": {

phpstan-baseline.neon

Whitespace-only changes.

phpstan.neon.dist

Lines changed: 0 additions & 13 deletions
This file was deleted.

phpunit.xml.dist

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,24 @@
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
75
bootstrap="vendor/autoload.php"
86
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
127
processIsolation="false"
138
stopOnFailure="false"
149
executionOrder="random"
1510
failOnWarning="true"
1611
failOnRisky="true"
1712
failOnEmptyTestSuite="true"
1813
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
2014
>
2115
<testsuites>
2216
<testsuite name="Foxbyte Test Suite">
2317
<directory>tests</directory>
2418
</testsuite>
2519
</testsuites>
26-
<coverage>
20+
<source>
2721
<include>
2822
<directory suffix=".php">./src</directory>
2923
</include>
30-
<report>
31-
<html outputDirectory="build/coverage"/>
32-
<text outputFile="build/coverage.txt"/>
33-
<clover outputFile="build/logs/clover.xml"/>
34-
</report>
35-
</coverage>
36-
<logging>
37-
<junit outputFile="build/report.junit.xml"/>
38-
</logging>
24+
</source>
3925
</phpunit>

0 commit comments

Comments
 (0)