Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
rdbms: mysql:9
- php: 8.4
rdbms: mysql:8
- php: 8.4
rdbms: mariadb:11
- php: 8.4
rdbms: mariadb:10
steps:
Expand All @@ -43,6 +45,20 @@ jobs:
- run: composer install
- run: docker run -d --name mysql --net=host -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test ${{ matrix.rdbms }}
- run: bash tests/wait-for-mysql.sh
if: startsWith(matrix.rdbms, 'mysql:')
- run: |
MAX_RETRIES=20
until docker exec mysql healthcheck.sh --connect; do
((MAX_RETRIES--))
if [ $MAX_RETRIES -le 0 ]; then
echo "MariaDB did not become healthy in time."
exit 1
fi
echo "MariaDB not healthy yet. Retries left: $MAX_RETRIES"
sleep 1
done
echo "MariaDB is healthy."
if: startsWith(matrix.rdbms, 'mariadb:')
- run: vendor/bin/phpunit --coverage-text
if: ${{ matrix.php >= 7.3 }}
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
Expand Down