1name: Test
2inputs:
3  runTestsParameters:
4    default: ''
5    required: false
6  jitType:
7    default: 'disable'
8    required: false
9  idleCpu:
10    default: 'false'
11    required: false
12runs:
13  using: composite
14  steps:
15    - shell: bash
16      run: |
17        set -x
18        export MYSQL_TEST_USER=root
19        export MYSQL_TEST_PASSWD=root
20        if [[ -z "$PDO_MYSQL_TEST_DSN" ]]; then
21          export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test"
22        fi
23        export PDO_MYSQL_TEST_USER=root
24        export PDO_MYSQL_TEST_PASS=root
25        export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0"
26        export PDO_DBLIB_TEST_USER="pdo_test"
27        export PDO_DBLIB_TEST_PASS="password"
28        export PHP_OCI8_TEST_USER="system"
29        export PHP_OCI8_TEST_PASS="pass"
30        export PHP_OCI8_TEST_DB="localhost/XEPDB1"
31        export PDO_OCI_TEST_USER="system"
32        export PDO_OCI_TEST_PASS="pass"
33        export PDO_OCI_TEST_DSN="oci:dbname=localhost/XEPDB1;charset=AL32UTF8"
34        export PGSQL_TEST_CONNSTR="host=localhost dbname=test port=5432 user=postgres password=postgres"
35        if [[ -z "$PDO_PGSQL_TEST_DSN" ]]; then
36          export PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres"
37        fi
38        export SKIP_IO_CAPTURE_TESTS=1
39        sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
40          -d opcache.jit=${{ inputs.jitType }} \
41          -d opcache.jit_buffer_size=16M \
42          ${{ inputs.idleCpu == 'true' && '-j$(($(/usr/bin/nproc) - 1))' || '-j$(/usr/bin/nproc)' }} \
43          -g FAIL,BORK,LEAK,XLEAK \
44          --no-progress \
45          --offline \
46          --show-diff \
47          --show-slow 1000 \
48          --set-timeout 120
49