Skip to content

GitHub action to run code quality analysis a Drupal 8+ instance

License

Notifications You must be signed in to change notification settings

eaudeweb/drupal-code-qa-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Execute code quality analysis a Drupal 10+ instance

This GitHub action runs code quality analysis on custom written code located in web/modules/custom and web/themes/custom.

It includes PHPLint, PHPCS, PHPMD and PHPStan.

Usage:

jobs:
  qa-code:
    name: 'Check code quality'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 1
      - uses: eaudeweb/[email protected]
      - uses: eaudeweb/[email protected]
        with:
          phplint: 'true'
          phpmd: 'true'
          phpcs: 'true'
          phpcs_standards: 'Drupal,DrupalPractice'
          phpcs_extensions: 'php,module,inc,install,profile,theme,test,info,yml'
          phpstan: 'true'
          phpstan_level: '9'