From 7861d6e620a94b91369e5c057019b1710ade53d2 Mon Sep 17 00:00:00 2001 From: Shift Date: Wed, 19 Feb 2025 05:32:53 +0000 Subject: [PATCH 1/5] Bump dependencies for Laravel 12 --- composer.json | 97 ++++++++++++++++++++++++++------------------------- 1 file changed, 50 insertions(+), 47 deletions(-) diff --git a/composer.json b/composer.json index 3dcff44..d44fa4a 100644 --- a/composer.json +++ b/composer.json @@ -1,50 +1,53 @@ { - "name": "juampi92/phecks", - "description": "A package to run custom PHP checks", - "authors": [ - { - "name": "juampi92", - "email": "juampi92@gmail.com" + "name": "juampi92/phecks", + "description": "A package to run custom PHP checks", + "authors": [ + { + "name": "juampi92", + "email": "juampi92@gmail.com" + } + ], + "license": "MIT", + "keywords": [ + "laravel", + "api" + ], + "require": { + "php": "^8.1|^8.2|^8.3", + "ext-json": "*", + "illuminate/console": "^9.0|^10.0|^11.0|^12.0", + "illuminate/contracts": "^9.0|^10.0|^11.0|^12.0", + "illuminate/filesystem": "^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^9.0|^10.0|^11.0|^12.0", + "roave/better-reflection": "^6.25" + }, + "require-dev": { + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0", + "friendsofphp/php-cs-fixer": "^3.13", + "phpunit/phpunit": "^9.0|^10.5|^11.5.3", + "larastan/larastan": "^2.9" + }, + "autoload": { + "psr-4": { + "Juampi92\\Phecks\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Juampi92\\Phecks\\Tests\\": "tests/" + } + }, + "scripts": { + "test": "vendor/bin/phpunit --colors=always", + "test-coverage": "vendor/bin/phpunit --coverage-html coverage", + "php-cs-fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -vv", + "phpstan": "./vendor/bin/phpstan analyze -c phpstan.neon.dist --memory-limit 1G" + }, + "extra": { + "laravel": { + "providers": [ + "Juampi92\\Phecks\\PhecksServiceProvider" + ] + } } - ], - "license": "MIT", - "keywords": ["laravel", "api"], - "require": { - "php" : "^8.1|^8.2|^8.3", - "ext-json": "*", - "illuminate/console": "^9.0|^10.0|^11.0", - "illuminate/contracts": "^9.0|^10.0|^11.0", - "illuminate/filesystem": "^9.0|^10.0|^11.0", - "illuminate/support": "^9.0|^10.0|^11.0", - "roave/better-reflection": "^6.25" - }, - "require-dev": { - "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0", - "friendsofphp/php-cs-fixer": "^3.13", - "phpunit/phpunit": "^9.0|^10.5", - "larastan/larastan": "^2.9" - }, - "autoload": { - "psr-4": { - "Juampi92\\Phecks\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "Juampi92\\Phecks\\Tests\\": "tests/" - } - }, - "scripts": { - "test": "vendor/bin/phpunit --colors=always", - "test-coverage": "vendor/bin/phpunit --coverage-html coverage", - "php-cs-fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -vv", - "phpstan": "./vendor/bin/phpstan analyze -c phpstan.neon.dist --memory-limit 1G" - }, - "extra": { - "laravel": { - "providers": [ - "Juampi92\\Phecks\\PhecksServiceProvider" - ] - } - } } From 27e8ff1562dc4f5c6475d8da3c392356a59d522c Mon Sep 17 00:00:00 2001 From: Shift Date: Wed, 19 Feb 2025 05:32:53 +0000 Subject: [PATCH 2/5] Update GitHub Actions for Laravel 12 --- .github/workflows/run-tests.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b4840f4..131b65a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,18 +2,21 @@ name: run-tests on: push: - branches: [main] + branches: + - main pull_request: - branches: [main] + branches: + - main jobs: test: runs-on: ubuntu-latest + strategy: fail-fast: true matrix: php: [8.3, 8.2, 8.1] - laravel: [11.*, 10.*, 9.*] + laravel: ['9.*', '10.*', '11.*', '12.*'] stability: [prefer-stable] include: - laravel: 11.* @@ -23,9 +26,13 @@ jobs: - laravel: 9.* testbench: 7.* - php: 8.1 + - laravel: 12.* + testbench: 10.* exclude: - laravel: 11.* php: 8.1 + - laravel: 12.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ubuntu-latest @@ -44,6 +51,7 @@ jobs: run: | echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Install dependencies run: | composer require \ @@ -52,5 +60,6 @@ jobs: "${{ matrix.php == '8.1' && 'roave/better-reflection:6.25.*' || 'roave/better-reflection:6.*' }}" \ --no-interaction --no-update --ignore-platform-reqs composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs + - name: Execute tests run: vendor/bin/phpunit From ab4366b985fe978de91ce00f9bb8c0cc88dfa200 Mon Sep 17 00:00:00 2001 From: Juan Pablo Barreto <2080215+juampi92@users.noreply.github.com> Date: Tue, 21 Oct 2025 09:22:48 +0200 Subject: [PATCH 3/5] chore: php 8.4 in run-tests Co-authored-by: Can Vural --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 131b65a..047c5e1 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: true matrix: - php: [8.3, 8.2, 8.1] + php: [8.4, 8.3, 8.2, 8.1] laravel: ['9.*', '10.*', '11.*', '12.*'] stability: [prefer-stable] include: From 5e421f75ee2b7c3e19c4b442c78c055fddf0fb43 Mon Sep 17 00:00:00 2001 From: Juan Pablo Barreto <2080215+juampi92@users.noreply.github.com> Date: Tue, 21 Oct 2025 09:23:02 +0200 Subject: [PATCH 4/5] chore: php 8.4 in composer.json Co-authored-by: Can Vural --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d44fa4a..71cd237 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "api" ], "require": { - "php": "^8.1|^8.2|^8.3", + "php": "^8.1|^8.2|^8.3|^8.4", "ext-json": "*", "illuminate/console": "^9.0|^10.0|^11.0|^12.0", "illuminate/contracts": "^9.0|^10.0|^11.0|^12.0", From ae6812cfc85ef5225d4cba50f41e8490549bb7a6 Mon Sep 17 00:00:00 2001 From: Juan Pablo Barreto <2080215+juampi92@users.noreply.github.com> Date: Tue, 21 Oct 2025 10:36:23 +0200 Subject: [PATCH 5/5] Update composer.json with larastan Co-authored-by: Can Vural --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 71cd237..be4f75d 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0", "friendsofphp/php-cs-fixer": "^3.13", "phpunit/phpunit": "^9.0|^10.5|^11.5.3", - "larastan/larastan": "^2.9" + "larastan/larastan": "^2.9|^3" }, "autoload": { "psr-4": {