Updated facet. Fixing codesniff errors #109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Code Sniffer | |
on: push | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP with PECL extension | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP Code Sniffer | |
run: | | |
cd .ci | |
composer require --dev dealerdirect/phpcodesniffer-composer-installer | |
composer require --dev drupal/coder | |
- name: Check coding standards | |
run: | | |
.ci/vendor/bin/phpcs --colors -n --standard=Drupal --extensions=php,module,yml metsis |