Skip to content

Commit

Permalink
ci: fix MSSQL initialization in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Oct 22, 2024
1 parent 40f4115 commit 678c049
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,21 @@ jobs:
- php: '8.0'
extensions: pdo, pdo_sqlsrv
mssql: 'server:2017-latest'
- php: '8.0'
extensions: pdo, pdo_sqlsrv
mssql: 'server:2019-latest'
- php: '8.1'
extensions: pdo, pdo_sqlsrv
mssql: 'server:2019-latest'
odbc-version: 18
flag: "-C"
- php: '8.2'
extensions: pdo, pdo_sqlsrv
mssql: 'server:2019-latest'
odbc-version: 18
flag: "-C"
- php: '8.3'
extensions: pdo, pdo_sqlsrv
mssql: 'server:2019-latest'
odbc-version: 18
flag: "-C"

services:
mssql:
Expand All @@ -48,7 +51,7 @@ jobs:
MSSQL_PID: Developer
ports:
- 11433:1433
options: --name=mssql --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'SSpaSS__1' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3
options: --name=mssql --health-cmd="/opt/mssql-tools${{ matrix.odbc-version }}/bin/sqlcmd ${{ matrix.flag }} -S localhost -U SA -P 'SSpaSS__1' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=5

steps:
- name: Checkout
Expand Down

0 comments on commit 678c049

Please sign in to comment.