https://github.com/eaudeweb/drupal-code-qa-action
GitHub action to run code quality analysis a Drupal 8+ instance
https://github.com/eaudeweb/drupal-code-qa-action
Last synced: 4 months ago
JSON representation
GitHub action to run code quality analysis a Drupal 8+ instance
- Host: GitHub
- URL: https://github.com/eaudeweb/drupal-code-qa-action
- Owner: eaudeweb
- License: mit
- Created: 2022-03-31T19:22:28.000Z (about 4 years ago)
- Default Branch: 2.x
- Last Pushed: 2024-01-15T16:56:58.000Z (over 2 years ago)
- Last Synced: 2024-04-16T03:50:40.419Z (about 2 years ago)
- Size: 19.5 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```yaml
jobs:
qa-code:
name: 'Check code quality'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: eaudeweb/drupal-install-action@v1.1
- uses: eaudeweb/drupal-code-qa-action@2.x
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'
```