1name: Test libmysqlclient
2inputs:
3  withMysqli:
4    required: true
5runs:
6  using: composite
7  steps:
8    - shell: bash
9      run: |
10        set -x
11        ${{ inputs.withMysqli == 'true' && 'export MYSQL_TEST_USER=root' || '' }}
12        ${{ inputs.withMysqli == 'true' && 'export MYSQL_TEST_PASSWD=root' || '' }}
13        export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
14        export PDO_MYSQL_TEST_HOST=127.0.0.1
15        export PDO_MYSQL_TEST_USER=root
16        export PDO_MYSQL_TEST_PASS=root
17        sapi/cli/php run-tests.php -P -q \
18          -g FAIL,BORK,LEAK,XLEAK \
19          --no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 \
20          ext/pdo_mysql
21