diff --git a/.github/workflows/db-mssql.yml b/.github/workflows/db-mssql.yml index f6b646b0c..07bbd4f1b 100644 --- a/.github/workflows/db-mssql.yml +++ b/.github/workflows/db-mssql.yml @@ -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 @@ -87,11 +92,6 @@ jobs: - name: Set environment variables pull request linux. uses: yiisoft/actions/db/environment-linux@master - - name: Install ODBC driver. - run: | - curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | tee /etc/apt/sources.list.d/mssql-release.list - ACCEPT_EULA=Y apt-get install -y msodbcsql18 - - name: Install db. uses: yiisoft/actions/db/subpackage-install@master with: