Skip to content

Issue #192: Set default widget to be embedded. #223

Issue #192: Set default widget to be embedded.

Issue #192: Set default widget to be embedded. #223

name: Coding Standards
on: [push, pull_request]
jobs:
phpcs:
name: Run phpcs
runs-on: ubuntu-20.04
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
coverage: none
- uses: actions/checkout@v2
- name: Get composer cache directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer directory
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('./composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer install coder_sniffer
run: composer install --ansi --prefer-dist --no-interaction --no-progress
- name: Backdrop coding standards
run: >
vendor/bin/phpcs -n
--standard=vendor/backdrop/coder/coder_sniffer/Backdrop
--ignore="vendor/*,views/paragraphs_handler_relationship.inc,migrate/destinations/MigrateDestinationParagraphsItem.inc,ParagraphsItemEntity.inc"
--extensions=install,module,php,inc .