move phpmd-ga script from composer to linting workflow
This commit is contained in:
parent
bfe120f24e
commit
35a2c13fcd
|
|
@ -130,19 +130,16 @@ jobs:
|
|||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ env.php-version }}
|
||||
tools: composer, cs2pr
|
||||
tools: phpmd
|
||||
coverage: none
|
||||
env:
|
||||
fail-fast: true
|
||||
|
||||
- name: Install Composer dependencies
|
||||
uses: "ramsey/composer-install@v2"
|
||||
|
||||
- name: Detect mess
|
||||
run: composer phpmd-ga
|
||||
run: phpmd . github phpmd.xml
|
||||
|
||||
- name: Update basefile
|
||||
run: composer phpmd-baseline
|
||||
run: phpmd . ansi phpmd.xml --generate-baseline
|
||||
|
||||
- name: Commit updated basefile
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
"phpcs-fix": "phpcbf",
|
||||
"phpmd": "phpmd . ansi phpmd.xml",
|
||||
"phpmd-baseline": "@phpmd --generate-baseline",
|
||||
"phpmd-ga": "phpmd . github phpmd.xml",
|
||||
"phpstan": "phpstan analyse",
|
||||
"phpstan-baseline": "@phpstan --generate-baseline"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue