Skip to content

Commit

Permalink
Adjust SQL Server GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Aug 19, 2024
1 parent 518ec3d commit 5bedeb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/sql-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
fail-fast: false
matrix:
mssql: [2017-latest-ubuntu, 2019-latest]
include:
- mssql: 2017-latest-ubuntu
healthRunnable: /opt/mssql-tools/bin/sqlcmd
- mssql: 2019-latest
healthRunnable: /opt/mssql-tools18/bin/sqlcmd -C
services:
mssql:
image: mcr.microsoft.com/mssql/server:${{ matrix.mssql }}
Expand All @@ -30,7 +35,7 @@ jobs:
- 1433/tcp
# needed because the mssql container does not provide a health check
options: >-
--health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P flowableStr0ngPassword -l 30 -Q \"SELECT 1\" || exit 1"
--health-cmd="${{ matrix.healthRunnable }} -S localhost -U sa -P flowableStr0ngPassword -l 30 -Q \"SELECT 1\" || exit 1"
--health-start-period 10s
--health-interval 10s
--health-timeout 5s
Expand Down

0 comments on commit 5bedeb6

Please sign in to comment.