Skip to content

[BUGFIX] Avoid empty localized email subjects in some cases (#3867) #5257

[BUGFIX] Avoid empty localized email subjects in some cases (#3867)

[BUGFIX] Avoid empty localized email subjects in some cases (#3867) #5257

Workflow file for this run

---
name: CI
on:
push:
branches:
- main
- 5.x
pull_request:
jobs:
php-lint:
name: "PHP linter"
runs-on: ubuntu-24.04
timeout-minutes: 2
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
ini-file: development
tools: composer:v2
coverage: none
- name: "Show Composer version"
run: composer --version
- name: "Show the Composer configuration"
run: composer config --global --list
- name: "Run PHP lint"
run: "composer ci:php:lint"
strategy:
fail-fast: false
matrix:
php-version:
- "7.2"
- "8.3"
code-quality:
name: "Code quality checks"
runs-on: ubuntu-24.04
timeout-minutes: 2
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install PHP"
uses: shivammathur/setup-php@v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
php-version: "${{ matrix.php-version }}"
ini-file: development
tools: composer:v2
extensions: zip
coverage: none
- name: "Show Composer version"
run: composer --version
- name: "Show the Composer configuration"
run: composer config --global --list
- name: "Cache dependencies installed with composer"
uses: actions/cache@v4
with:
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
path: ~/.cache/composer
restore-keys: "php${{ matrix.php-version }}-composer-\n"
- name: "Install Composer dependencies"
run: "composer update --no-ansi --no-progress"
- name: "Run command"
run: "composer ci:${{ matrix.command }}"
strategy:
fail-fast: false
matrix:
command:
- "php:cs-fixer"
- "php:sniff"
- "php:stan"
- "ts:lint"
php-version:
- "8.3"
unit-tests:
name: "Unit tests"
runs-on: ubuntu-24.04
timeout-minutes: 2
needs: php-lint
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install PHP"
uses: shivammathur/setup-php@v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
php-version: "${{ matrix.php-version }}"
ini-file: development
tools: composer:v2
extensions: dom, json, libxml, zip
coverage: none
ini-values: error_reporting=E_ALL
- name: "Show Composer version"
run: composer --version
- name: "Show the Composer configuration"
run: composer config --global --list
- name: "Cache dependencies installed with composer"
uses: actions/cache@v4
with:
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}"
path: ~/.cache/composer
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n"
- name: "Install TYPO3 Core"
env:
TYPO3: "${{ matrix.typo3-version }}"
run: |
composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"$TYPO3"
composer show
- name: "Install lowest dependencies with composer"
if: "matrix.composer-dependencies == 'lowest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
composer show
- name: "Install highest dependencies with composer"
if: "matrix.composer-dependencies == 'highest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies
composer show
- name: "Run unit tests"
run: "composer ci:tests:unit"
strategy:
fail-fast: false
matrix:
include:
- typo3-version: "^10.4"
php-version: "7.2"
composer-dependencies: lowest
- typo3-version: "^10.4"
php-version: "7.4"
composer-dependencies: highest
- typo3-version: "^11.5"
php-version: "7.4"
composer-dependencies: lowest
- typo3-version: "^11.5"
php-version: "8.3"
composer-dependencies: highest
functional-tests:
name: "Functional tests"
runs-on: ubuntu-24.04
timeout-minutes: 4
needs: php-lint
env:
DB_DATABASE: typo3
DB_USER: root
DB_PASSWORD: root
DB_HOST: localhost
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install PHP"
uses: shivammathur/setup-php@v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
php-version: "${{ matrix.php-version }}"
ini-file: development
tools: composer:v2
extensions: dom, json, libxml, mysqli, zip
coverage: none
ini-values: error_reporting=E_ALL
- name: "Show Composer version"
run: composer --version
- name: "Show the Composer configuration"
run: composer config --global --list
- name: "Cache dependencies installed with composer"
uses: actions/cache@v4
with:
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}"
path: ~/.cache/composer
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n"
- name: "Install TYPO3 Core"
env:
TYPO3: "${{ matrix.typo3-version }}"
run: |
composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"$TYPO3"
composer show
- name: "Install lowest dependencies with composer"
if: "matrix.composer-dependencies == 'lowest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
composer show
- name: "Install highest dependencies with composer"
if: "matrix.composer-dependencies == 'highest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies
composer show
- name: "Start MySQL"
run: "sudo /etc/init.d/mysql start"
# This workaround for MySQL 8 can be removed once we drop support for PHP 7.2/7.3.
- name: "Configure the MySQL user to work with PHP 7.2/7.3"
run: mysql -u root --password=root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'"
- name: "Create the tests directory"
run: "mkdir -p .Build/public/typo3temp/var/tests"
- name: "Run functional tests"
run: |
export typo3DatabaseName="$DB_DATABASE";
export typo3DatabaseHost="$DB_HOST";
export typo3DatabaseUsername="$DB_USER";
export typo3DatabasePassword="$DB_PASSWORD";
composer ci:tests:functional
strategy:
fail-fast: false
matrix:
include:
- typo3-version: "^10.4"
php-version: "7.2"
composer-dependencies: lowest
- typo3-version: "^10.4"
php-version: "7.4"
composer-dependencies: highest
- typo3-version: "^11.5"
php-version: "7.4"
composer-dependencies: lowest
- typo3-version: "^11.5"
php-version: "8.3"
composer-dependencies: highest
legacy-functional-tests:
name: "Legacy functional tests"
runs-on: ubuntu-24.04
timeout-minutes: 5
needs: php-lint
env:
DB_DATABASE: typo3
DB_USER: root
DB_PASSWORD: root
DB_HOST: localhost
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install PHP"
uses: shivammathur/setup-php@v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
php-version: "${{ matrix.php-version }}"
ini-file: development
tools: composer:v2
extensions: dom, json, libxml, mysqli, zip
coverage: none
ini-values: error_reporting=E_ALL
- name: "Show Composer version"
run: composer --version
- name: "Show the Composer configuration"
run: composer config --global --list
- name: "Cache dependencies installed with composer"
uses: actions/cache@v4
with:
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}"
path: ~/.cache/composer
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n"
- name: "Install TYPO3 Core"
env:
TYPO3: "${{ matrix.typo3-version }}"
run: |
composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"$TYPO3"
composer show
- name: "Install lowest dependencies with composer"
if: "matrix.composer-dependencies == 'lowest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
composer show
- name: "Install highest dependencies with composer"
if: "matrix.composer-dependencies == 'highest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies
composer show
- name: "Start MySQL"
run: "sudo /etc/init.d/mysql start"
# This workaround for MySQL 8 can be removed once we drop support for PHP 7.2/7.3.
- name: "Configure the MySQL user to work with PHP 7.2/7.3"
run: mysql -u root --password=root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'"
- name: "Create the tests directory"
run: "mkdir -p .Build/public/typo3temp/var/tests"
- name: "Run legacy functional tests"
run: |
export typo3DatabaseName="$DB_DATABASE";
export typo3DatabaseHost="$DB_HOST";
export typo3DatabaseUsername="$DB_USER";
export typo3DatabasePassword="$DB_PASSWORD";
composer ci:tests:legacy-functional
strategy:
fail-fast: false
matrix:
include:
- typo3-version: "^10.4"
php-version: "7.2"
composer-dependencies: lowest
- typo3-version: "^10.4"
php-version: "7.4"
composer-dependencies: highest
- typo3-version: "^11.5"
php-version: "7.4"
composer-dependencies: lowest
- typo3-version: "^11.5"
php-version: "8.3"
composer-dependencies: highest