Skip to content

Commit 3d2d16b

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 3d2d16b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ 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:
12+
fail-fast: false
1213
matrix:
14+
rdbms:
15+
- mysql:5
16+
- mysql:8
17+
- mariadb:10
18+
- mariadb:11
1319
php:
1420
- 8.3
1521
- 8.2
@@ -31,7 +37,7 @@ jobs:
3137
coverage: xdebug
3238
ini-file: development
3339
- 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
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 }}
3541
- run: bash tests/wait-for-mysql.sh
3642
- run: vendor/bin/phpunit --coverage-text
3743
if: ${{ matrix.php >= 7.3 }}

0 commit comments

Comments
 (0)