File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 42
42
matrix :
43
43
php-versions : ['7.3', '7.4', '8.0']
44
44
db-platforms : ['MySQLi', 'Postgre', 'SQLite3', 'SQLSRV']
45
+ include :
46
+ - php-versions : ' 7.3'
47
+ mssql : ' server:2017-latest'
48
+ - php-versions : ' 7.4'
49
+ mssql : ' server:2017-latest'
50
+ - php-versions : ' 8.0'
51
+ mssql : ' server:2019-latest'
45
52
46
53
services :
47
54
mysql :
@@ -62,13 +69,14 @@ jobs:
62
69
- 5432:5432
63
70
options : --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
64
71
mssql :
65
- image : mcr.microsoft.com/mssql/server:2017-latest
72
+ image : mcr.microsoft.com/mssql/${{ matrix.mssql }}
66
73
env :
67
74
SA_PASSWORD : 1Secure*Password1
68
75
ACCEPT_EULA : Y
69
76
MSSQL_PID : Developer
70
77
ports :
71
78
- 1433:1433
79
+ options : --name=mssql --health-cmd="/opt/mssql-tools/bin/sqlcmd -S 127.0.0.1,1433 -U SA -P '1Secure*Password1' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3
72
80
redis :
73
81
image : redis
74
82
ports :
82
90
steps :
83
91
- name : Create database for MSSQL Server
84
92
if : matrix.db-platforms == 'SQLSRV'
85
- run : sqlcmd -S 127.0.0.1,1433 -U sa -P 1Secure*Password1 -Q " CREATE DATABASE test"
93
+ run : docker exec -i mssql /opt/mssql-tools/bin/ sqlcmd -S 127.0.0.1,1433 -U SA -P ' 1Secure*Password1' -Q ' CREATE DATABASE test'
86
94
87
95
- name : Checkout
88
96
uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments