From 3a01ae5444e8e3f61bbc85e6bd1320e021385be7 Mon Sep 17 00:00:00 2001 From: Mehmet Faruk Demirkoparan Date: Sat, 23 May 2026 13:11:49 +0300 Subject: [PATCH 1/2] feat: support Laravel 13 --- .github/workflows/run-tests.yml | 13 +++++++++++-- composer.json | 12 ++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0663f16..65a5c3a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,12 +14,21 @@ jobs: matrix: os: [ubuntu-latest] php: [8.2,8.3,8.4] - laravel: [12.*] + laravel: [11.*,12.*,13.*] stability: [prefer-lowest, prefer-stable] include: + - laravel: 11.* + testbench: 9.* + carbon: ^3 - laravel: 12.* testbench: 10.* carbon: ^3 + - laravel: 13.* + testbench: 11.* + carbon: ^3 + exclude: + - laravel: 13.* + php: 8.2 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -66,7 +75,7 @@ jobs: run: composer show -D - name: Execute tests - run: vendor/bin/pest --ci + run: vendor/bin/pest --ci --no-coverage env: DB_USERNAME: arflow DB_PASSWORD: arflow diff --git a/composer.json b/composer.json index 6ba75db..8f809f9 100644 --- a/composer.json +++ b/composer.json @@ -18,16 +18,16 @@ "require": { "php": "^8.2|^8.3|^8.4", "spatie/laravel-package-tools": "^1.14.0", - "laravel/framework": "^12.0" + "laravel/framework": "^11.0|^12.0|^13.0" }, "require-dev": { "laravel/pint": "^1.0", "nunomaduro/collision": "^8.0", - "larastan/larastan": "^v3", - "orchestra/testbench": "^10", - "pestphp/pest": "^3.0", - "pestphp/pest-plugin-arch": "^3.0", - "pestphp/pest-plugin-laravel": "^3.0", + "larastan/larastan": "^3.0", + "orchestra/testbench": "^9.0|^10.0|^11.0", + "pestphp/pest": "^3.0|^4.0", + "pestphp/pest-plugin-arch": "^3.0|^4.0", + "pestphp/pest-plugin-laravel": "^3.0|^4.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-phpunit": "^2.0" From 7480e3db6d58b640464db8394bfada78dc324089 Mon Sep 17 00:00:00 2001 From: mfarukdev Date: Sat, 23 May 2026 10:13:48 +0000 Subject: [PATCH 2/2] Fix styling --- tests/config/arflow.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/config/arflow.php b/tests/config/arflow.php index 7181594..825b3a2 100644 --- a/tests/config/arflow.php +++ b/tests/config/arflow.php @@ -1,5 +1,8 @@ [ 'workflow1' => [ @@ -10,10 +13,10 @@ 'from' => ['a'], 'to' => 'b', 'guard' => [ - [\AuroraWebSoftware\ArFlow\Tests\Guards\TestAllowedTransitionGuard::class, ['permission' => 'represtative_approval']], + [TestAllowedTransitionGuard::class, ['permission' => 'represtative_approval']], ], 'action' => [ - [\AuroraWebSoftware\ArFlow\Tests\TransitionActions\TestSuccessTransitionAction::class, ['a' => 'b']], + [TestSuccessTransitionAction::class, ['a' => 'b']], ], 'successMetadata' => ['asd' => 'asd'], 'successJob' => [],