mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-26 04:56:13 +01:00
[TASK] Add json lint (#62)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.pl>
This commit is contained in:
parent
b3b09050ca
commit
4be996d822
2 changed files with 4 additions and 1 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -52,6 +52,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
command:
|
command:
|
||||||
- "ts:lint"
|
- "ts:lint"
|
||||||
|
- "json:lint"
|
||||||
- "php:sniff"
|
- "php:sniff"
|
||||||
- "php:codestyle"
|
- "php:codestyle"
|
||||||
php-version:
|
php-version:
|
||||||
|
|
|
@ -39,7 +39,8 @@
|
||||||
"nimut/testing-framework": "^5.0.3",
|
"nimut/testing-framework": "^5.0.3",
|
||||||
"phpunit/phpunit": "^7.5.20",
|
"phpunit/phpunit": "^7.5.20",
|
||||||
"squizlabs/php_codesniffer": "^3.5.5",
|
"squizlabs/php_codesniffer": "^3.5.5",
|
||||||
"typo3/cms-fluid-styled-content": "^9.5 || 10.4"
|
"typo3/cms-fluid-styled-content": "^9.5 || 10.4",
|
||||||
|
"seld/jsonlint": "^1.8"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"typo3-ter/tea": "self.version"
|
"typo3-ter/tea": "self.version"
|
||||||
|
@ -66,6 +67,7 @@
|
||||||
"ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
|
"ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
|
||||||
"ci:php:codestyle": "php-cs-fixer fix --config .php_cs.dist -v --dry-run --using-cache false --diff --diff-format=udiff",
|
"ci:php:codestyle": "php-cs-fixer fix --config .php_cs.dist -v --dry-run --using-cache false --diff --diff-format=udiff",
|
||||||
"ci:php:sniff": ".Build/vendor/bin/phpcs Classes Tests",
|
"ci:php:sniff": ".Build/vendor/bin/phpcs Classes Tests",
|
||||||
|
"ci:json:lint": "find . -name '*.json' -not -path '*.Build/*' | xargs .Build/vendor/bin/jsonlint -q",
|
||||||
"ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
"ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
||||||
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",
|
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",
|
||||||
"ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';",
|
"ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';",
|
||||||
|
|
Loading…
Reference in a new issue