From 366f987c94d5709984fd5837ab4fe1ad54b571a6 Mon Sep 17 00:00:00 2001 From: Viktor Khokhryakov Date: Tue, 10 Dec 2024 16:48:58 +0400 Subject: [PATCH] Prepare `MSSQL` workflow for `ubuntu-24.04` runner image --- .github/workflows/ci-mssql.yml | 3 +++ tests/data/config.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-mssql.yml b/.github/workflows/ci-mssql.yml index 08ce49057bb..9dc7691d576 100644 --- a/.github/workflows/ci-mssql.yml +++ b/.github/workflows/ci-mssql.yml @@ -55,6 +55,9 @@ jobs: options: --name=mssql --health-cmd="${{ matrix.mssql.mssql-tool }} -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3 steps: + - name: Install ODBC driver + run: sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 + - name: Checkout uses: actions/checkout@v4 diff --git a/tests/data/config.php b/tests/data/config.php index eb73f340d25..f40a54dc343 100644 --- a/tests/data/config.php +++ b/tests/data/config.php @@ -37,7 +37,7 @@ 'fixture' => __DIR__ . '/sqlite.sql', ], 'sqlsrv' => [ - 'dsn' => 'sqlsrv:Server=127.0.0.1,1433;Database=yiitest', + 'dsn' => 'sqlsrv:Server=127.0.0.1,1433;Database=yiitest;Encrypt=no', 'username' => 'SA', 'password' => 'YourStrong!Passw0rd', 'fixture' => __DIR__ . '/mssql.sql',