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        export REPORT_EXIT_STATUS=no
18        sapi/cli/php run-tests.php -P -q \
19          -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
20          --offline --show-diff --show-slow 1000 --set-timeout 120 \
21          ext/pdo_mysql
22