From 8f3f27e24dcfa910a9d0025550f369b34203a498 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 22 Jun 2026 12:17:07 +0200 Subject: [PATCH] CI : PHPCSFixer with common action --- .github/workflows/php.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index eae1140..ce1c1e3 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -36,26 +36,11 @@ jobs: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - - name: Setup PHP - uses: shivammathur/setup-php@v2 + - name: Run PHP-CS-Fixer + uses: PrestaShop/.github/.github/actions/php-ci/php-cs@master with: php-version: '7.4' - - name: Checkout - uses: actions/checkout@v2.0.0 - - - name: Cache dependencies - uses: actions/cache@v4 - with: - path: vendor - key: php-${{ hashFiles('composer.lock') }} - - - name: Install dependencies - run: composer install - - - name: Run PHP-CS-Fixer - run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --using-cache=no --diff-format udiff - # Run PHPStan against the module (PHP 7.4 – PS 8.2) phpstan-74-81: name: PHPStan (PHP 7.4 - 8.1)