Skip to content

Commit

Permalink
Usage readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tavib47 committed Aug 3, 2023
1 parent 9744e9c commit 27fcb27
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,25 @@
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/[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'
```

0 comments on commit 27fcb27

Please sign in to comment.