DROOP-1106: text align, table color #737
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: 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 |