Skip to content

New translations locallang_db.xlf (TYPO3 In-Context Localization) #125

New translations locallang_db.xlf (TYPO3 In-Context Localization)

New translations locallang_db.xlf (TYPO3 In-Context Localization) #125

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
env:
- { php: 8.1, typo3: ^12.4 }
- { php: 8.2, typo3: ^12.4 }
env: ${{ matrix.env }}
steps:
- uses: actions/checkout@v1
- name: Set up PHP Version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.env.php }}
tools: composer:v2
- name: Start MySQL
run: sudo /etc/init.d/mysql start
# Directory permissions for .composer are wrong, so we remove the complete directory
# https://github.com/actions/virtual-environments/issues/824
- name: Delete .composer directory
run: |
sudo rm -rf ~/.composer
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: dependencies-composer-${{ hashFiles('composer.json') }}
- name: Install composer dependencies
run: |
composer require typo3/cms-core:${{ matrix.env.typo3 }} --no-progress
- name: Unit tests
run: |
echo "Running unit tests";
.Build/bin/phpunit --colors -c Tests/Build/UnitTests.xml
- name: Functional tests
run: |
export typo3DatabaseName="typo3";
export typo3DatabaseHost="127.0.0.1";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="root";
echo "Running functional tests";
find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; .Build/bin/phpunit -c Tests/Build/FunctionalTests.xml {}'