Skip to content

Commit e7cd7c3

Browse files
committed
Detect the database client name in the Docker container debug step.
1 parent cd7ec6e commit e7cd7c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/unit-test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187

188188
- name: Docker container debug information
189189
run: |
190-
npm run wp-env-test -- run mysql mariadb -- --version
190+
npm run wp-env-test -- run mysql -- sh -c 'if command -v mariadb > /dev/null; then mariadb --version; else mysql --version; fi'
191191
npm run wp-env-test -- run wordpress php -- --version
192192
npm run wp-env-test -- run wordpress php -m
193193
npm run wp-env-test -- run wordpress php -i

0 commit comments

Comments
 (0)