Commit 095cc68
committed
ci: replace broken TYPO3_11 CI infrastructure with TYPO3_12 structure
Replace the non-functional TYPO3_11 CI setup with the complete, working
CI infrastructure from TYPO3_12/main branches, adapted for TYPO3 v11
compatibility.
Problem:
--------
The existing TYPO3_11 CI workflows are broken and non-functional, preventing
automated testing, quality checks, and continuous integration. The previous
setup used outdated Docker-based workflows and incomplete configurations.
Solution:
---------
Complete replacement of CI infrastructure by backporting the proven TYPO3_12
CI setup:
1. **GitHub Actions Workflow** (.github/workflows/ci.yml)
- Matrix strategy testing PHP 7.4, 8.0, 8.1, 8.2 with TYPO3 ^11.5
- Composer dependency caching for faster builds
- Automated security audits (composer audit)
- PHP linting, PHPStan static analysis, functional tests
- Code coverage generation and Codecov upload
- All steps use composer ci:* scripts for consistency
2. **Composer Scripts** (composer.json)
- ci:security - Security vulnerability scanning
- ci:test:php:lint - PHP syntax validation
- ci:test:php:phpstan - Static analysis with PHPStan
- ci:test:php:phpstan:baseline - Baseline generation
- ci:test:php:functional - PHPUnit functional test suite
- ci:coverage:functional - Coverage report generation
- ci:test - Combined quality gate (lint + phpstan + functional)
3. **PHPStan Configuration** (Build/phpstan.neon)
- Level 8 analysis (appropriate for TYPO3 v11)
- Strict rules for maximum code quality
- PHPUnit extension integration
- Comprehensive path coverage (Classes, Configuration, Resources, Tests)
- Advanced type inference and checking
- Empty baseline for clean start
Changes Made:
-------------
**New Files:**
- .github/workflows/ci.yml - Complete CI workflow for TYPO3 v11
- Build/phpstan.neon - PHPStan configuration adapted for v11
- Build/phpstan-baseline.neon - Empty baseline (clean slate)
**Modified Files:**
- composer.json - Added complete ci:* scripts section
**Adaptations for TYPO3 v11:**
- PHP version matrix: 7.4-8.2 (v11 support range)
- TYPO3 constraint: ^11.5 instead of ^12.4
- PHPStan level: 8 (v11 appropriate) instead of 9 (v12)
- Removed phpstan-deprecation-rules (not in v11 dependencies)
- Coverage PHP version: 8.1 (stable for v11) instead of 8.2
- Included typo3/cms-recordlist dependency (v11 requirement)
Technical Details:
------------------
- All CI steps use composer scripts for local reproducibility
- Workflow includes proper error formatting (--error-format=github)
- SQLite database driver for zero-dependency functional tests
- Composer cache strategy optimizes build times
- Coverage reports uploaded only on PHP 8.1 to avoid duplicates
Impact:
-------
✅ Functional CI pipeline with automated quality gates
✅ Local and CI consistency through composer scripts
✅ Static analysis catches errors before review
✅ Test coverage tracking and reporting
✅ Security vulnerability monitoring
✅ Foundation for automated PR checks and branch protection1 parent 1debb22 commit 095cc68
4 files changed
Lines changed: 159 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
45 | 70 | | |
46 | 71 | | |
0 commit comments