chore: CD-306297 Designated branch for TYPO3 11 with PHP >8.0 #122
Workflow file for this run
This file contains 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: | |
fail-fast: false | |
matrix: | |
typo3: [ ^11.5 ] | |
php: [ '8.0', '8.2', '8.3' ] | |
experimental: [false] | |
continue-on-error: ${{ matrix.experimental }} | |
steps: | |
- name: Start database server | |
run: sudo /etc/init.d/mysql start | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 10 | |
- name: Set up PHP Version ${{ matrix.php }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- name: Environment Check and fixed composer version | |
run: | | |
php --version | |
composer self-update --2.2 | |
composer --version | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies with nimut/typo3-complete:${{ matrix.typo3 }} | |
run: | | |
composer require --dev nimut/typo3-complete:${{ matrix.typo3 }} --no-progress | |
git checkout composer.json | |
ln -nfs .Build/vendor/typo3/cms/typo3 typo3 | |
- name: Lint PHP | |
run: find . -name \*.php ! -path "./.Build/*" ! -path "./scripts/*" ! -path "./typo3_src/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \; | |
- name: Unit Tests without coverage | |
if: matrix.typo3 != '^11.5' || matrix.php != '8.3' | |
run: composer test:unit | |
- name: Unit Tests with coverage without 8.3 | |
if: matrix.typo3 == '^11.5' && matrix.php == '8.3' | |
run: | | |
export "UNIT_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests-v10.xml | |
.Build/bin/phpunit --coverage-filter Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests | |
- name: Upload coverage results to Scrutinizer | |
uses: sudo-bot/action-scrutinizer@latest | |
if: matrix.typo3 == '^11.5' && matrix.php == '8.3' | |
with: | |
cli-args: "--format=php-clover functional-coverage.clover --revision=${{ github.event.pull_request.head.sha || github.sha }}" |