[FEATURE] Add CI/CD setup generation based on TYPO3 tea extension#825
Draft
PKuhlmay wants to merge 1 commit into
Draft
[FEATURE] Add CI/CD setup generation based on TYPO3 tea extension#825PKuhlmay wants to merge 1 commit into
PKuhlmay wants to merge 1 commit into
Conversation
Introduces a new optional `generateCiSetup` flag that generates CI/CD configuration files when building an extension: - GitHub Actions workflow (.github/workflows/ci.yml) with PHP lint, code quality (PHPStan, PHP-CS-Fixer) and test matrix jobs - PHPStan configuration (phpstan.neon, level 8) - PHP-CS-Fixer configuration (.php-cs-fixer.php) - PHPUnit XML configs (Build/phpunit/UnitTests.xml + FunctionalTests.xml) - Extended composer.json with dev dependencies (phpstan, php-cs-fixer, parallel-lint, coding-standards) and composer scripts (check:php:*, check:tests:*, fix:php:cs-fixer) Also adds Build/ to .gitattributes export-ignore and .phpunit.cache / .php-cs-fixer.cache to .gitignore template. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
60c7841 to
da23bf9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
generateCiSetupcheckbox in the Extension Builder UIGenerated files
.github/workflows/ci.yml— GitHub Actions workflow (PHP lint, PHPStan, PHP-CS-Fixer, unit + functional tests matrix)phpstan.neon— PHPStan configuration (level 8).php-cs-fixer.php— PHP-CS-Fixer configuration with TYPO3 coding standardsBuild/phpunit/UnitTests.xml+FunctionalTests.xml— PHPUnit XML configsChanges to generated
composer.jsonAdds dev dependencies (
phpstan,php-cs-fixer,parallel-lint,coding-standards) and composer scripts (check:php:lint,check:php:stan,check:php:cs-fixer,check:tests:unit,check:tests:functional,fix:php:cs-fixer).Test plan
composer.jsoncontains the additional dev dependencies and scripts.gitignoreincludes.phpunit.cacheand.php-cs-fixer.cache.gitattributesincludesBuild/asexport-ignore🤖 Generated with Claude Code