Skip to content

[BUGFIX] Ensure that correct typo3 binary is returned in non-composer installations #1909

[BUGFIX] Ensure that correct typo3 binary is returned in non-composer installations

[BUGFIX] Ensure that correct typo3 binary is returned in non-composer installations #1909

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- "**"
push:
branches:
- "main"
jobs:
Unit:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
typo3:
- '^12.4'
php:
- '8.1'
- '8.2'
- '8.3'
mysql:
- '8.0'
include:
- typo3: '^13.4'
php: '8.3'
mysql: '8.0'
- typo3: '^13.4'
php: '8.4'
mysql: '8.0'
steps:
- name: Set up MySQL ${{ matrix.mysql }}
uses: mirromutth/mysql-action@v1.1
with:
mysql version: ${{ matrix.mysql }}
mysql root password: 'root'
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP Version ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Environment Check
run: |
php --version
composer --version
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies with typo3/cms-core:${{ matrix.typo3 }}
run: |
composer require typo3/cms-core:${{ 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/*" ! -path "./Resources/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
- name: Unit Tests
run: |
export "UNIT_XML"=Tests/UnitTests.xml
.Build/bin/phpunit --colors -c $UNIT_XML Tests/Unit
- name: Functional Tests
run: |
export "FUNCTIONAL_XML"=Tests/FunctionalTests.xml
.Build/bin/phpunit --colors -c $FUNCTIONAL_XML Tests/Functional --process-isolation
env:
typo3DatabaseHost: 127.0.0.1
typo3DatabaseName: typo3
typo3DatabasePassword: root
typo3DatabaseUsername: root