40 lines
860 B
YAML
40 lines
860 B
YAML
name: Run coding standards checks
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- production
|
|
pull_request:
|
|
|
|
jobs:
|
|
phpunit:
|
|
runs-on: ubuntu-latest
|
|
|
|
name: "Run coding standards checks"
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: |
|
|
~/.composer/cache/files
|
|
web/core
|
|
web/modules/constrib
|
|
web/themes/contrib
|
|
vendor
|
|
key: dependencies-composer-${{ hashFiles('composer.json') }}
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 7.4
|
|
|
|
- name: Install dependencies
|
|
run: composer install --prefer-dist --no-interaction --no-suggest
|
|
|
|
- name: Run checks
|
|
run: vendor/bin/phpcs -s --warning-severity=6
|