move phpmd-ga script from composer to linting workflow

This commit is contained in:
IanDelMar 2023-10-08 23:55:15 +02:00
parent bfe120f24e
commit 35a2c13fcd
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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"
},