ci: fix PHP 8.5/TYPO3 14 build #213
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
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| env: | |
| # See version matrix @ https://typo3.org/cms/roadmap | |
| - { php: 8.1, typo3: 12 } | |
| - { php: 8.3, typo3: 13 } | |
| - { php: 8.5, typo3: 14 } | |
| env: ${{ matrix.env }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up PHP Version | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.env.php }} | |
| tools: composer:v2 | |
| - name: Lint PHP files | |
| run: find *.php Classes -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Cache dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.composer/cache | |
| key: dependencies-composer-${{ hashFiles('composer.json') }} | |
| - name: Install composer dependencies | |
| run: | | |
| composer require --no-plugins typo3/cms-core:^$typo3 typo3/cms-frontend:^$typo3 typo3/cms-backend:^$typo3 | |
| - name: Run PHPStan | |
| run: composer phpstan |