Skip to content

Commit f0ea793

Browse files
committed
Update phpunit.yml: upgrade SQL Server image, add MSSQL_PID, adjust health check retries and command
1 parent cced0bf commit f0ea793

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/phpunit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,18 @@ jobs:
4646
--health-timeout 5s
4747
--health-retries 5
4848
sqlserver:
49-
image: mcr.microsoft.com/mssql/server
49+
image: mcr.microsoft.com/mssql/server:2022-latest
5050
env:
5151
ACCEPT_EULA: Y
5252
SA_PASSWORD: Pa55word
53+
MSSQL_PID: Developer
5354
ports:
5455
- "1433:1433"
5556
options: >-
56-
--health-cmd "/opt/mssql-tools/bin/sqlcmd -U sa -P Pa55word -Q 'SELECT 1'"
57+
--health-cmd "/opt/mssql-tools18/bin/sqlcmd -U sa -P Pa55word -Q 'SELECT 1' -C -No"
5758
--health-interval 10s
5859
--health-timeout 5s
59-
--health-retries 5
60+
--health-retries 10
6061
6162
env:
6263
MYSQL_TEST_HOST: mysql

0 commit comments

Comments
 (0)