From b9f6703773b501137a4b66a8dc691ba360d783f5 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Thu, 21 Mar 2024 21:39:19 +0100 Subject: [PATCH] Add rdbms matrix for wider compatibility testing This change set introduces a `rdbms` matrix with the purpose of increasing insurance this package works with up to the latest MySQL/MariaDB versions. Note that due to MySQL's versioning there are no `v6` and `v7`. Refs: #194 --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c169b47..a470bf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,10 +6,13 @@ on: jobs: PHPUnit: - name: PHPUnit (PHP ${{ matrix.php }}) + name: PHPUnit (PHP ${{ matrix.php }}; RDBMS ${{ matrix.rdbms }}) runs-on: ubuntu-22.04 strategy: matrix: + rdbms: + - mysql:5 + - mariadb:10 php: - 8.3 - 8.2 @@ -31,7 +34,7 @@ jobs: coverage: xdebug ini-file: development - 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 mysql:5 + - 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 - run: vendor/bin/phpunit --coverage-text if: ${{ matrix.php >= 7.3 }}