mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 19:36:12 +01:00
[TASK] Add PHP YAML lint instead of GitHub action (#84)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
This commit is contained in:
parent
dc3f774966
commit
ee7e76e18f
2 changed files with 4 additions and 11 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -52,6 +52,7 @@ jobs:
|
|||
matrix:
|
||||
command:
|
||||
- "ts:lint"
|
||||
- "yaml:lint"
|
||||
- "json:lint"
|
||||
- "php:sniff"
|
||||
- "php:codestyle"
|
||||
|
@ -71,16 +72,6 @@ jobs:
|
|||
name: "Run lint"
|
||||
run: "xmllint --schema .github/build/xliff-core-1.2-strict.xsd
|
||||
--noout $(find Resources -name '*.xlf')"
|
||||
yaml-lint:
|
||||
name: "Yaml linter"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: "Yaml lint"
|
||||
uses: ibiqlik/action-yamllint@v1
|
||||
unit-tests:
|
||||
name: "Unit tests"
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -42,7 +42,8 @@
|
|||
"typo3/cms-fluid-styled-content": "^9.5 || ^10.4",
|
||||
"seld/jsonlint": "^1.8",
|
||||
"phpdocumentor/reflection-docblock": "<= 5.1 || > 5.2",
|
||||
"sensiolabs/security-checker": "^6.0"
|
||||
"sensiolabs/security-checker": "^6.0",
|
||||
"j13k/yaml-lint": "1.1.x-dev"
|
||||
},
|
||||
"replace": {
|
||||
"typo3-ter/tea": "self.version"
|
||||
|
@ -70,6 +71,7 @@
|
|||
"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:json:lint": "find . -name '*.json' -not -path '*.Build/*' | xargs .Build/vendor/bin/jsonlint -q",
|
||||
"ci:yaml:lint": "find . -name '*.yml' -not -path '*.Build/*' | xargs .Build/vendor/bin/yaml-lint",
|
||||
"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: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