Skip to content

Commit 249c5fe

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: friends-of-reactphp#194
1 parent 3cf70c6 commit 249c5fe

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 }}; RDBMS ${{ matrix.rdbms }})
1010
runs-on: ubuntu-22.04
1111
strategy:
1212
matrix:
13+
rdbms:
14+
- mysql:5
1315
php:
1416
- 8.3
1517
- 8.2
@@ -23,6 +25,9 @@ jobs:
2325
- 5.6
2426
- 5.5
2527
- 5.4
28+
include:
29+
- php: 8.3
30+
rdbms: mariadb:10
2631
steps:
2732
- uses: actions/checkout@v4
2833
- uses: shivammathur/setup-php@v2
@@ -31,7 +36,7 @@ jobs:
3136
coverage: xdebug
3237
ini-file: development
3338
- run: composer install
34-
- 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
39+
- 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 }}
3540
- run: bash tests/wait-for-mysql.sh
3641
- run: vendor/bin/phpunit --coverage-text
3742
if: ${{ matrix.php >= 7.3 }}

0 commit comments

Comments
 (0)