Make sql within tests on CI more robust

This commit is contained in:
Daniel Siepmann 2023-05-11 09:47:44 +02:00
parent 507176bd23
commit bbeeea7f5c
2 changed files with 9 additions and 0 deletions

View file

@ -141,6 +141,12 @@ jobs:
mysql database: 'typo3' mysql database: 'typo3'
mysql root password: 'root' mysql root password: 'root'
- name: Wait for MySQL
run: |
while ! mysqladmin ping --host=127.0.0.1 --password=root --silent; do
sleep 1
done
- name: Install dependencies with expected TYPO3 version - name: Install dependencies with expected TYPO3 version
run: composer require --prefer-dist --no-progress "typo3/cms-backend:${{ matrix.typo3-version }}" "typo3/cms-core:${{ matrix.typo3-version }}" "typo3/cms-dashboard:${{ matrix.typo3-version }}" run: composer require --prefer-dist --no-progress "typo3/cms-backend:${{ matrix.typo3-version }}" "typo3/cms-core:${{ matrix.typo3-version }}" "typo3/cms-dashboard:${{ matrix.typo3-version }}"

View file

@ -22,6 +22,9 @@ Tasks
* Ignore PHP version when executing cs fixer. * Ignore PHP version when executing cs fixer.
As cs fixer officially does not seem to support PHP 8.2 yet. As cs fixer officially does not seem to support PHP 8.2 yet.
* Make sql within tests on CI more robust.
Wait until server has started before executing tests.
Deprecation Deprecation
----------- -----------