Skip to content

Commit

Permalink
chore: add composer lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
smichaelsen committed Aug 3, 2024
1 parent 2848eb4 commit bc19091
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
args: --ignore-platform-reqs

- name: PHPStan Static Analysis
run: vendor/bin/phpstan analyse -c .github/phpstan.neon
run: composer phpstan

php-cs-fixer:
runs-on: ubuntu-latest
Expand All @@ -23,7 +23,7 @@ jobs:
args: --ignore-platform-reqs

- name: PHP CS Fixer Static Analysis
run: vendor/bin/php-cs-fixer fix --config=./.github/.php-cs-fixer.dist.php
run: composer php-cs-fixer

rector:
runs-on: ubuntu-latest
Expand All @@ -34,4 +34,4 @@ jobs:
args: --ignore-platform-reqs

- name: Rector
run: vendor/bin/rector process --config=./.github/rector.php
run: composer rector
18 changes: 17 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"description": "Render Web Components",
"extra": {
"typo3/cms": {
"extension-key": "webcomponents"
"extension-key": "webcomponents",
"Package": {
"serviceProvider": "Sinso\\Webcomponents\\ServiceProvider"
}
}
},
"autoload": {
Expand All @@ -25,7 +28,20 @@
"typo3/coding-standards": "^0.8.0",
"ssch/typo3-rector": "^2.6"
},
"suggest": {
"contentblocks/content-blocks": "Define webcomponents as content blocks"
},
"config": {
"allow-plugins": true
},
"scripts": {
"lint": [
"@php-cs-fixer",
"@phpstan",
"@rector"
],
"php-cs-fixer": "php-cs-fixer fix --config=./.github/.php-cs-fixer.dist.php",
"phpstan": "phpstan analyse --configuration=./.github/phpstan.neon",
"rector": "rector process --config=./.github/rector.php"
}
}

0 comments on commit bc19091

Please sign in to comment.