Skip to content

Ingnoring versions in urn enum for indicator, corrected code for indexing for fields in processor #118

Ingnoring versions in urn enum for indicator, corrected code for indexing for fields in processor

Ingnoring versions in urn enum for indicator, corrected code for indexing for fields in processor #118

Workflow file for this run

name: PHP Code Standards
on:
pull_request:
branches:
- 1.0.x
- 1.1.x
env:
PHP_VERSION: 8.1
jobs:
PHP-Code-Standards:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set PHP Version
run: |
sudo update-alternatives --set php /usr/bin/php$PHP_VERSION
sudo update-alternatives --set phar /usr/bin/phar$PHP_VERSION
sudo update-alternatives --set phpdbg /usr/bin/phpdbg$PHP_VERSION
sudo update-alternatives --set php-cgi /usr/bin/php-cgi$PHP_VERSION
sudo update-alternatives --set phar.phar /usr/bin/phar.phar$PHP_VERSION
- name: Сomposer Install
run: |
ls ${{ github.workspace }}
composer install
- name: Install PHP_CodeSniffer and Drupal Coder
run: |
composer global require "squizlabs/php_codesniffer=*"
composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer global require drupal/coder
- name: Run PHP_CodeSniffer
run: |
export PATH="$PATH:~/.composer/vendor/bin"
phpcs -v --colors --standard="Drupal,DrupalPractice" --extensions="php,module,inc,install,test,profile,theme" themes modules