mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-24 10:16:12 +01:00

Compare commits

..

8 commits

4 changed files with 32 additions and 52 deletions

View file

@ -83,7 +83,6 @@ jobs:
- "json:lint" - "json:lint"
- "php:cs-fixer" - "php:cs-fixer"
- "php:mess" - "php:mess"
- "php:rector"
- "php:sniff" - "php:sniff"
- "php:stan" - "php:stan"
- "typoscript:lint" - "typoscript:lint"
@ -327,7 +326,6 @@ jobs:
documentation: documentation:
name: Documentation name: Documentation
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
timeout-minutes: 2
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

View file

@ -8,8 +8,8 @@ stages:
include: include:
- '/.gitlab/pipeline/jobs/.composer-update.yml' - '/.gitlab/pipeline/jobs/.composer-update.yml'
- '/.gitlab/pipeline/jobs/.default-frontend.yml'
- '/.gitlab/pipeline/jobs/.default.yml' - '/.gitlab/pipeline/jobs/.default.yml'
- '/.gitlab/pipeline/jobs/.default-frontend.yml'
- '/.gitlab/pipeline/jobs/.variables.yml' - '/.gitlab/pipeline/jobs/.variables.yml'
- '/.gitlab/pipeline/jobs/build-composer-dependencies.yml' - '/.gitlab/pipeline/jobs/build-composer-dependencies.yml'
- '/.gitlab/pipeline/jobs/composer-normalize.yml' - '/.gitlab/pipeline/jobs/composer-normalize.yml'
@ -20,22 +20,21 @@ include:
- '/.gitlab/pipeline/jobs/func-php8.0-v11-lowest.yml' - '/.gitlab/pipeline/jobs/func-php8.0-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/func-php8.1-v11-highest.yml' - '/.gitlab/pipeline/jobs/func-php8.1-v11-highest.yml'
- '/.gitlab/pipeline/jobs/func-php8.1-v11-lowest.yml' - '/.gitlab/pipeline/jobs/func-php8.1-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/func-php8.1-v12-highest.yml'
- '/.gitlab/pipeline/jobs/func-php8.1-v12-lowest.yml'
- '/.gitlab/pipeline/jobs/func-php8.2-v11-highest.yml' - '/.gitlab/pipeline/jobs/func-php8.2-v11-highest.yml'
- '/.gitlab/pipeline/jobs/func-php8.2-v11-lowest.yml' - '/.gitlab/pipeline/jobs/func-php8.2-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/func-php8.1-v12-highest.yml'
- '/.gitlab/pipeline/jobs/func-php8.1-v12-lowest.yml'
- '/.gitlab/pipeline/jobs/func-php8.2-v12-highest.yml' - '/.gitlab/pipeline/jobs/func-php8.2-v12-highest.yml'
- '/.gitlab/pipeline/jobs/func-php8.2-v12-lowest.yml' - '/.gitlab/pipeline/jobs/func-php8.2-v12-lowest.yml'
- '/.gitlab/pipeline/jobs/javascript-lint.yml' - '/.gitlab/pipeline/jobs/javascript-lint.yml'
- '/.gitlab/pipeline/jobs/json-lint.yml' - '/.gitlab/pipeline/jobs/json-lint.yml'
- '/.gitlab/pipeline/jobs/php-cs-fixer.yml'
- '/.gitlab/pipeline/jobs/php-lint-php7.4.yml' - '/.gitlab/pipeline/jobs/php-lint-php7.4.yml'
- '/.gitlab/pipeline/jobs/php-lint-php8.0.yml' - '/.gitlab/pipeline/jobs/php-lint-php8.0.yml'
- '/.gitlab/pipeline/jobs/php-lint-php8.1.yml' - '/.gitlab/pipeline/jobs/php-lint-php8.1.yml'
- '/.gitlab/pipeline/jobs/php-lint-php8.2.yml' - '/.gitlab/pipeline/jobs/php-lint-php8.2.yml'
- '/.gitlab/pipeline/jobs/php-lint-php8.3.yml' - '/.gitlab/pipeline/jobs/php-lint-php8.3.yml'
- '/.gitlab/pipeline/jobs/phpcs.yml' - '/.gitlab/pipeline/jobs/phpcs.yml'
- '/.gitlab/pipeline/jobs/rector.yml' - '/.gitlab/pipeline/jobs/php-cs-fixer.yml'
- '/.gitlab/pipeline/jobs/typoscript-lint.yml' - '/.gitlab/pipeline/jobs/typoscript-lint.yml'
- '/.gitlab/pipeline/jobs/unit-php7.4-v11-highest.yml' - '/.gitlab/pipeline/jobs/unit-php7.4-v11-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php7.4-v11-lowest.yml' - '/.gitlab/pipeline/jobs/unit-php7.4-v11-lowest.yml'
@ -43,14 +42,14 @@ include:
- '/.gitlab/pipeline/jobs/unit-php8.0-v11-lowest.yml' - '/.gitlab/pipeline/jobs/unit-php8.0-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.1-v11-highest.yml' - '/.gitlab/pipeline/jobs/unit-php8.1-v11-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.1-v11-lowest.yml' - '/.gitlab/pipeline/jobs/unit-php8.1-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.1-v12-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.1-v12-lowest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.2-v11-highest.yml' - '/.gitlab/pipeline/jobs/unit-php8.2-v11-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.2-v11-lowest.yml' - '/.gitlab/pipeline/jobs/unit-php8.2-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.2-v12-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.2-v12-lowest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.3-v11-highest.yml' - '/.gitlab/pipeline/jobs/unit-php8.3-v11-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.3-v11-lowest.yml' - '/.gitlab/pipeline/jobs/unit-php8.3-v11-lowest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.1-v12-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.1-v12-lowest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.2-v12-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.2-v12-lowest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.3-v12-highest.yml' - '/.gitlab/pipeline/jobs/unit-php8.3-v12-highest.yml'
- '/.gitlab/pipeline/jobs/unit-php8.3-v12-lowest.yml' - '/.gitlab/pipeline/jobs/unit-php8.3-v12-lowest.yml'
- '/.gitlab/pipeline/jobs/xliff-lint.yml' - '/.gitlab/pipeline/jobs/xliff-lint.yml'

View file

@ -1,11 +0,0 @@
rector:
extends: .default
stage: codestyle
needs:
- build-composer-dependencies
- php-lint-php7.4
- php-lint-php8.0
- php-lint-php8.1
- php-lint-php8.2
script:
- composer ci:php:rector

View file

@ -47,31 +47,31 @@
"typo3/cms-frontend": "^11.5.4 || ^12.4.2" "typo3/cms-frontend": "^11.5.4 || ^12.4.2"
}, },
"require-dev": { "require-dev": {
"ergebnis/composer-normalize": "2.44.0", "ergebnis/composer-normalize": "^2.43.0",
"friendsofphp/php-cs-fixer": "3.64.0", "friendsofphp/php-cs-fixer": "^3.64.0",
"helmich/typo3-typoscript-lint": "3.1.1", "helmich/typo3-typoscript-lint": "^3.1.1",
"icanhazstring/composer-unused": "0.8.11", "icanhazstring/composer-unused": "^0.8.11",
"php-parallel-lint/php-parallel-lint": "1.4.0", "php-parallel-lint/php-parallel-lint": "^1.4",
"phpmd/phpmd": "2.15.0", "phpmd/phpmd": "^2.15.0",
"phpstan/extension-installer": "1.4.3", "phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "1.12.5", "phpstan/phpstan": "^1.12.3",
"phpstan/phpstan-phpunit": "1.4.0", "phpstan/phpstan-phpunit": "^1.4.0",
"phpstan/phpstan-strict-rules": "1.6.1", "phpstan/phpstan-strict-rules": "^1.6.0",
"phpunit/phpunit": "9.6.20", "phpunit/phpunit": "^9.6.20",
"saschaegerer/phpstan-typo3": "1.10.2", "saschaegerer/phpstan-typo3": "^1.10.2",
"seld/jsonlint": "1.11.0", "seld/jsonlint": "^1.11.0",
"spaze/phpstan-disallowed-calls": "3.4.0", "spaze/phpstan-disallowed-calls": "^3.4",
"squizlabs/php_codesniffer": "3.10.3", "squizlabs/php_codesniffer": "^3.10.3",
"ssch/typo3-rector": "2.8.0", "ssch/typo3-rector": "^2.6.5",
"ssch/typo3-rector-testing-framework": "2.0.1", "ssch/typo3-rector-testing-framework": "^2.0.1",
"symfony/console": "^5.4.44 || ^6.4.12 || ^7.1.5", "symfony/console": "^5.4 || ^6.4 || ^7.0",
"symfony/translation": "^5.4.44 || ^6.4.12 || ^7.1.5", "symfony/translation": "^5.4 || ^6.4 || ^7.0",
"symfony/yaml": "^5.4.44 || ^6.4.12 || ^7.1.5", "symfony/yaml": "^5.4 || ^6.4 || ^7.0",
"tomasvotruba/cognitive-complexity": "0.2.3", "tomasvotruba/cognitive-complexity": "^0.2.3",
"tomasvotruba/type-coverage": "1.0.0", "tomasvotruba/type-coverage": "^0.3.1",
"typo3/cms-fluid-styled-content": "^11.5.4 || ^12.4.2", "typo3/cms-fluid-styled-content": "^11.5.4 || ^12.4.2",
"typo3/coding-standards": "0.6.1 || 0.8.0", "typo3/coding-standards": "^0.6.1 || ^0.8.0",
"typo3/testing-framework": "7.1.0", "typo3/testing-framework": "^7.1.0",
"webmozart/assert": "^1.11.0" "webmozart/assert": "^1.11.0"
}, },
"replace": { "replace": {
@ -147,7 +147,6 @@
"ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --diff", "ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --diff",
"ci:php:lint": "parallel-lint .*.php *.php Classes Configuration Tests", "ci:php:lint": "parallel-lint .*.php *.php Classes Configuration Tests",
"ci:php:mess": "phpmd Classes text Build/phpmd/phpmd.xml", "ci:php:mess": "phpmd Classes text Build/phpmd/phpmd.xml",
"ci:php:rector": "rector --dry-run",
"ci:php:sniff": "phpcs --standard=Build/phpcs/phpcs.xml Classes Configuration Tests", "ci:php:sniff": "phpcs --standard=Build/phpcs/phpcs.xml Classes Configuration Tests",
"ci:php:stan": "phpstan --no-progress -v", "ci:php:stan": "phpstan --no-progress -v",
"ci:static": [ "ci:static": [
@ -156,7 +155,6 @@
"@ci:json:lint", "@ci:json:lint",
"@ci:php:cs-fixer", "@ci:php:cs-fixer",
"@ci:php:lint", "@ci:php:lint",
"@ci:php:rector",
"@ci:php:sniff", "@ci:php:sniff",
"@ci:php:stan", "@ci:php:stan",
"@ci:typoscript:lint", "@ci:typoscript:lint",
@ -176,12 +174,10 @@
"docs:generate": "docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation", "docs:generate": "docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation",
"fix:composer:normalize": "@composer normalize --no-check-lock", "fix:composer:normalize": "@composer normalize --no-check-lock",
"fix:php": [ "fix:php": [
"@fix:php:rector",
"@fix:php:cs", "@fix:php:cs",
"@fix:php:sniff" "@fix:php:sniff"
], ],
"fix:php:cs": "php-cs-fixer fix --config .php-cs-fixer.php", "fix:php:cs": "php-cs-fixer fix --config .php-cs-fixer.php",
"fix:php:rector": "rector",
"fix:php:sniff": "phpcbf --standard=Build/phpcs/phpcs.xml Classes Configuration Tests", "fix:php:sniff": "phpcbf --standard=Build/phpcs/phpcs.xml Classes Configuration Tests",
"phpstan:baseline": "phpstan --generate-baseline --allow-empty-baseline", "phpstan:baseline": "phpstan --generate-baseline --allow-empty-baseline",
"prepare-release": [ "prepare-release": [
@ -222,7 +218,6 @@
"ci:php:cs-fixer": "Checks the code style with the PHP Coding Standards Fixer (PHP-CS-Fixer).", "ci:php:cs-fixer": "Checks the code style with the PHP Coding Standards Fixer (PHP-CS-Fixer).",
"ci:php:lint": "Lints the PHP files for syntax errors.", "ci:php:lint": "Lints the PHP files for syntax errors.",
"ci:php:mess": "Runs PHP mess detection.", "ci:php:mess": "Runs PHP mess detection.",
"ci:php:rector": "Checks for code for changes by Rector.",
"ci:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).", "ci:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).",
"ci:php:stan": "Checks the PHP types using PHPStan.", "ci:php:stan": "Checks the PHP types using PHPStan.",
"ci:static": "Runs all static code checks (syntax, style, types).", "ci:static": "Runs all static code checks (syntax, style, types).",
@ -237,7 +232,6 @@
"fix:composer:normalize": "Normalizes composer.json file content.", "fix:composer:normalize": "Normalizes composer.json file content.",
"fix:php": "Runs all fixers for the PHP code.", "fix:php": "Runs all fixers for the PHP code.",
"fix:php:cs": "Fixes the code style with PHP-CS-Fixer.", "fix:php:cs": "Fixes the code style with PHP-CS-Fixer.",
"fix:php:rector": "Updates the code with Rector.",
"fix:php:sniff": "Fixes the code style with PHP_CodeSniffer.", "fix:php:sniff": "Fixes the code style with PHP_CodeSniffer.",
"phpstan:baseline": "Updates the PHPStan baseline file to match the code.", "phpstan:baseline": "Updates the PHPStan baseline file to match the code.",
"prepare-release": "Removes development-only files in preparation of a TER release." "prepare-release": "Removes development-only files in preparation of a TER release."