Skip to content

Commit 985511e

Browse files
committed
Enable ext/odbc and ext/pdo_odbc tests on Linux in GitHub CI
1 parent 66acaba commit 985511e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/actions/setup-x64/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ runs:
1212
# Ensure local_infile tests can run.
1313
mysql -uroot -proot -e "SET GLOBAL local_infile = true"
1414
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;"
15+
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login odbc_test with password='password', check_policy=off; create user odbc_test for login odbc_test; grant alter, control, delete to odbc_test;"
16+
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "ALTER SERVER ROLE sysadmin ADD MEMBER odbc_test;"
1517
sudo locale-gen de_DE
1618
1719
./.github/scripts/setup-slapd.sh

.github/actions/test-linux/action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ runs:
3030
export PDO_OCI_TEST_DSN="oci:dbname=localhost/XEPDB1;charset=AL32UTF8"
3131
export PGSQL_TEST_CONNSTR="host=postgres dbname=test port=5432 user=postgres password=postgres"
3232
export PDO_PGSQL_TEST_DSN="host=postgres dbname=test port=5432 user=postgres password=postgres"
33+
export ODBC_TEST_USER="odbc_test"
34+
export ODBC_TEST_PASS="password"
35+
export ODBC_TEST_DSN="Driver={ODBC Driver 17 for SQL Server};Server=127.0.0.1;Database=master;uid=$ODBC_TEST_USER;pwd=$ODBC_TEST_PASS"
36+
export PDO_ODBC_TEST_DSN="odbc:$ODBC_TEST_DSN"
3337
export SKIP_IO_CAPTURE_TESTS=1
3438
export TEST_PHP_JUNIT=junit.out.xml
3539
export STACK_LIMIT_DEFAULTS_CHECK=1

0 commit comments

Comments
 (0)