Skip to content

Commit

Permalink
Install ODBC driver for MSSQL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Oct 11, 2024
1 parent b59cd22 commit 08395bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/db-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 08395bf

Please sign in to comment.