From fafbd476add3476d6589ef5ef84b9effc8b116b3 Mon Sep 17 00:00:00 2001 From: orbeji <155294281+orbeji@users.noreply.github.com> Date: Mon, 15 Jan 2024 23:00:38 +0100 Subject: [PATCH] Update static.yml --- .github/workflows/static.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index b2db7ee..0362a3b 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -23,23 +23,22 @@ jobs: - name: PHPStan run: phpstan analyze --no-progress --error-format=checkstyle | cs2pr - php-cs-fixer: - name: PHP-CS-Fixer + phpcs: + name: PhpCS runs-on: ubuntu-22.04 steps: - - name: Checkout code - uses: actions/checkout@v4 + - uses: actions/checkout@v3 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.3 - coverage: none - tools: php-cs-fixer:3, cs2pr + - name: Composer install + uses: php-actions/composer@v6 - - name: PHP-CS-Fixer - run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr + - name: PHP Code Sniffer + uses: php-actions/phpcs@v1 + with: + php_version: 8.3 + path: src/ + standard: psr12 composer-normalize: name: Composer Normalize