From 0907a7b081ebdf58a6121642ed265e0ff51543a4 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Sun, 2 Mar 2025 04:53:50 +0300 Subject: [PATCH] laravel 12 --- .github/workflows/ci.yml | 120 +++++++++++++++++++++++++++------------ composer.json | 14 ++--- 2 files changed, 91 insertions(+), 43 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8172838..563b91d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,64 +3,112 @@ name: CI on: push: pull_request: - branches: [ master ] + branches: + - master jobs: pest: name: Tests (Pest) L${{ matrix.laravel }} + + + runs-on: ubuntu-latest + strategy: matrix: - laravel: [10, 11] + laravel: [10, 11, '12'] - steps: - - uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 - tools: composer:v2 - coverage: none - - name: Install composer dependencies - run: composer require "laravel/framework:^${{matrix.laravel}}.0" - - name: Run tests - run: vendor/bin/pest - phpstan: - name: Static analysis (PHPStan) - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 - tools: composer:v2 - coverage: none - - name: Install composer dependencies - run: composer install - - name: Run phpstan - run: vendor/bin/phpstan analyse - - php-cs-fixer: - name: Code style (php-cs-fixer) - runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + + + - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: 8.2 tools: composer:v2 coverage: none + + + + - name: Install composer dependencies + run: composer require "laravel/framework:^${{matrix.laravel}}.0" + + + + - name: Run tests + run: vendor/bin/pest + + phpstan: + name: Static analysis (PHPStan) + + + + runs-on: ubuntu-latest + + + + steps: + - uses: actions/checkout@v2 + + + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + tools: composer:v2 + coverage: none + + + + - name: Install composer dependencies + run: composer install + + + + - name: Run phpstan + run: vendor/bin/phpstan analyse + + php-cs-fixer: + name: Code style (php-cs-fixer) + + + + runs-on: ubuntu-latest + + + + steps: + - uses: actions/checkout@v2 + + + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + tools: composer:v2 + coverage: none + + + - name: Install php-cs-fixer run: composer global require friendsofphp/php-cs-fixer + + + - name: Run php-cs-fixer run: $HOME/.composer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php + + + - name: Commit changes from php-cs-fixer uses: EndBug/add-and-commit@v5 with: - author_name: "PHP CS Fixer" - author_email: "phpcsfixer@example.com" - message: Fix code style (php-cs-fixer) + author_name: PHP CS Fixer + author_email: phpcsfixer@example.com + message: Fix code style (php-cs-fixer) \ No newline at end of file diff --git a/composer.json b/composer.json index fe1ea2e..b224358 100644 --- a/composer.json +++ b/composer.json @@ -24,15 +24,15 @@ }, "require": { "php": "^8.2", - "illuminate/support": "^10.0|^11.0", - "illuminate/view": "^10.0|^11.0" + "illuminate/support": "^10.0|^11.0|^12.0", + "illuminate/view": "^10.0|^11.0|^12.0" }, "require-dev": { - "orchestra/testbench": "^8.0|^9.0", - "nunomaduro/larastan": "^2.4", - "pestphp/pest": "^2.0", - "pestphp/pest-plugin-laravel": "^2.0", - "intervention/image": "^2.7" + "orchestra/testbench": "^8.0|^9.0|^10.0", + "larastan/larastan": "^2.4|^3.1", + "pestphp/pest": "^2.0|^3.0", + "pestphp/pest-plugin-laravel": "^2.0|^3.0", + "intervention/image": "^2.7|^3.11" }, "extra": { "laravel": {