Skip to content

Commit

Permalink
Fix SQL Server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 7, 2024
1 parent d1b4112 commit d553431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: docker compose -f docker-compose.yml -f docker-compose.ci.yml up --wait ${{ matrix.database }}
if: matrix.database != 'sqlite'
- name: Create SQL Server database
run: docker compose exec sqlsrv /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U sa -P Password! -Q 'create database [test]'
run: docker compose exec sqlsrv /opt/mssql-tools18/bin/sqlcmd -C -S 127.0.0.1 -U sa -P Password! -Q 'CREATE DATABASE [test]'
if: matrix.database == 'sqlsrv'
- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ services:
networks:
- test
sqlsrv:
image: 'mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-20.04'
image: 'mcr.microsoft.com/mssql/server:2022-latest'
environment:
ACCEPT_EULA: Y
SA_PASSWORD: Password!
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$${SA_PASSWORD}" -Q "SELECT 1" -b -o /dev/null
test: /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U sa -P "$${SA_PASSWORD}" -Q "SELECT 1" -b -o /dev/null
interval: 5s
timeout: 3s
retries: 10
Expand Down

0 comments on commit d553431

Please sign in to comment.