mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 23:46:10 +01:00
[FEATURE] Add check for PSR-4 namespace correctness (#740)
This commit is contained in:
parent
47033ca0bb
commit
f814042f8b
4 changed files with 9 additions and 0 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -66,6 +66,7 @@ jobs:
|
|||
matrix:
|
||||
command:
|
||||
- "composer:normalize"
|
||||
- "composer:psr-verify"
|
||||
- "json:lint"
|
||||
- "php:copypaste"
|
||||
- "php:cs-fixer"
|
||||
|
|
|
@ -12,6 +12,7 @@ include:
|
|||
- '/.gitlab/pipeline/jobs/.variables.yml'
|
||||
- '/.gitlab/pipeline/jobs/build-composer-dependencies.yml'
|
||||
- '/.gitlab/pipeline/jobs/composer-normalize.yml'
|
||||
- '/.gitlab/pipeline/jobs/composer-psr-verify.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php7.4-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php7.4-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.0-v11-highest.yml'
|
||||
|
|
5
.gitlab/pipeline/jobs/composer-psr-verify.yml
Normal file
5
.gitlab/pipeline/jobs/composer-psr-verify.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
composer-psr-verify:
|
||||
extends: .default
|
||||
stage: codestyle
|
||||
script:
|
||||
- composer ci:composer:psr-verify
|
|
@ -103,6 +103,7 @@
|
|||
"@ci:static"
|
||||
],
|
||||
"ci:composer:normalize": "@composer normalize --no-check-lock --dry-run",
|
||||
"ci:composer:psr-verify": "@composer dumpautoload --optimize --strict-psr",
|
||||
"ci:coverage": [
|
||||
"@ci:coverage:unit",
|
||||
"@ci:coverage:functional"
|
||||
|
@ -194,6 +195,7 @@
|
|||
"scripts-descriptions": {
|
||||
"ci": "Runs all dynamic and static code checks.",
|
||||
"ci:composer:normalize": "Checks the composer.json.",
|
||||
"ci:composer:psr-verify": "Verifies PSR-4 namespace correctness.",
|
||||
"ci:coverage:functional": "Generates the code coverage report for functional tests.",
|
||||
"ci:coverage:merge": "Merges the code coverage reports for unit and functional tests.",
|
||||
"ci:coverage:unit": "Generates the code coverage report for unit tests.",
|
||||
|
|
Loading…
Reference in a new issue