Skip to content

Commit 00f1a0c

Browse files
committed
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
1 parent 61ad81f commit 00f1a0c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66

77
jobs:
88
PHPUnit:
9-
name: PHPUnit (PHP ${{ matrix.php }})
9+
name: PHPUnit (PHP ${{ matrix.php }} + ${{ matrix.rdbms }})
1010
runs-on: ubuntu-24.04
1111
strategy:
1212
matrix:
13+
rdbms:
14+
- mysql:5
1315
php:
1416
- 8.4
1517
- 8.3
@@ -24,6 +26,9 @@ jobs:
2426
- 5.6
2527
- 5.5
2628
- 5.4
29+
include:
30+
- php: 8.4
31+
rdbms: mariadb:10
2732
steps:
2833
- uses: actions/checkout@v4
2934
- uses: shivammathur/setup-php@v2
@@ -32,7 +37,7 @@ jobs:
3237
coverage: ${{ matrix.php < 8.0 && 'xdebug' || 'pcov' }}
3338
ini-file: development
3439
- run: composer install
35-
- 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
40+
- 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 }}
3641
- run: bash tests/wait-for-mysql.sh
3742
- run: vendor/bin/phpunit --coverage-text
3843
if: ${{ matrix.php >= 7.3 }}

0 commit comments

Comments
 (0)