1name: Test
2inputs:
3  runTestsParameters:
4    default: ''
5    required: false
6runs:
7  using: composite
8  steps:
9    - shell: bash
10      run: |
11        set -x
12        export MYSQL_TEST_USER=root
13        export MYSQL_TEST_PASSWD=root
14        if [[ -z "$PDO_MYSQL_TEST_DSN" ]]; then
15          export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
16        fi
17        export PDO_MYSQL_TEST_USER=root
18        export PDO_MYSQL_TEST_PASS=root
19        export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0"
20        export PDO_DBLIB_TEST_USER="pdo_test"
21        export PDO_DBLIB_TEST_PASS="password"
22        export PHP_OCI8_TEST_USER="system"
23        export PHP_OCI8_TEST_PASS="pass"
24        export PHP_OCI8_TEST_DB="localhost/XEPDB1"
25        export PDO_OCI_TEST_USER="system"
26        export PDO_OCI_TEST_PASS="pass"
27        export PDO_OCI_TEST_DSN="oci:dbname=localhost/XEPDB1;charset=AL32UTF8"
28        export SKIP_IO_CAPTURE_TESTS=1
29        sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
30          -j$(/usr/bin/nproc) \
31          -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \
32          --offline \
33          --show-diff \
34          --show-slow 1000 \
35          --set-timeout 120
36