Skip to content

Merge pull request #911 from droptica/DROOP-1106 #720

Merge pull request #911 from droptica/DROOP-1106

Merge pull request #911 from droptica/DROOP-1106 #720

Workflow file for this run

name: Drupal coding standards
on:
# Run on all pushes and on all pull requests.
# Prevent the build from running when there are only irrelevant changes.
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
# Allow manually triggering the workflow.
workflow_dispatch:
jobs:
Verify:
name: "Verify Drupal coding standards"
runs-on: ubuntu-latest
container: droptica/phpcs
env:
CODE_SNIFFER_PATH: "droopler.* src/ modules/custom/ themes/custom/"
CODE_SNIFFER_IGNORE: "*md,*.css,*.txt,*.info,*interactive_ui/react_slider/js*,*pl-sk/*,*pattern-lab/*,*_twig-components/*"
CODE_SNIFFER_EXTENSIONS: "php,inc,install,module,info,test,profile,theme"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Verify coding standards
run: phpcs ${{ env.CODE_SNIFFER_PATH }} --ignore=${{ env.CODE_SNIFFER_IGNORE }} --extensions=${{ env.CODE_SNIFFER_EXTENSIONS}} --standard=Drupal,DrupalPractice --report=full,gitblame