diff --git a/.github/workflows/php-lint.yml b/.github/workflows/php-lint.yml index 924378b1..4087b95c 100644 --- a/.github/workflows/php-lint.yml +++ b/.github/workflows/php-lint.yml @@ -61,3 +61,32 @@ jobs: - name: PHPMD run: composer phpmd + + php-lint-sniffs: + name: PHP (Sniffs) + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + + - uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + + - name: Validate Composer configuration + working-directory: "phpcs-sniffs" + run: composer validate + + - name: Install PHP dependencies + uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a + with: + composer-options: '--prefer-dist' + working-directory: "phpcs-sniffs" + + - name: PHP Lint + working-directory: "phpcs-sniffs" + run: composer lint + + - name: PHP Lint PHPCS + working-directory: "phpcs-sniffs" + run: composer check-cs