From 05d359c8bfb04cad6723964dce35dd591b835263 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Mon, 14 Oct 2024 02:31:00 +0700 Subject: [PATCH] Fix MSSQL tests (#886) --- .github/workflows/active-record.yml | 7 ++++++- .github/workflows/db-mssql.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/active-record.yml b/.github/workflows/active-record.yml index f4ed03395..0886fc101 100644 --- a/.github/workflows/active-record.yml +++ b/.github/workflows/active-record.yml @@ -20,7 +20,7 @@ jobs: env: COMPOSER_ROOT_VERSION: dev-master - EXTENSIONS: pdo, pdo_mysql, pdo_oci, pdo_pgsql, pdo_sqlite, pdo_sqlsrv-5.10.1 + EXTENSIONS: pdo, pdo_mysql, pdo_oci, pdo_pgsql, pdo_sqlite, pdo_sqlsrv-5.12 runs-on: ${{ matrix.os }} @@ -77,6 +77,11 @@ jobs: options: --name=mssql --health-cmd="/opt/mssql-tools18/bin/sqlcmd -C -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 curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list + sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 + - name: Checkout. uses: actions/checkout@v3 diff --git a/.github/workflows/db-mssql.yml b/.github/workflows/db-mssql.yml index ad0c8cbe6..07bbd4f1b 100644 --- a/.github/workflows/db-mssql.yml +++ b/.github/workflows/db-mssql.yml @@ -25,7 +25,7 @@ jobs: env: COMPOSER_ROOT_VERSION: dev-master CURRENT_PACKAGE: db-mssql - EXTENSIONS: pdo, pdo_sqlsrv-5.10.1 + EXTENSIONS: pdo, pdo_sqlsrv-5.12 runs-on: ${{ matrix.mssql.os || 'ubuntu-latest' }} @@ -64,6 +64,11 @@ jobs: options: --name=mssql --health-cmd="/opt/mssql-tools${{ matrix.mssql.odbc-version }}/bin/sqlcmd ${{ matrix.mssql.flag }} -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 curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list + sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 + - name: Checkout. uses: actions/checkout@v3