File tree Expand file tree Collapse file tree 5 files changed +984
-657
lines changed Expand file tree Collapse file tree 5 files changed +984
-657
lines changed Original file line number Diff line number Diff line change @@ -233,13 +233,13 @@ jobs:
233233
234234 services :
235235 sqlserver :
236- image : mcr.microsoft.com/mssql/server:2019-CU32-ubuntu-20.04
236+ image : mcr.microsoft.com/mssql/server:2022-latest
237237 env :
238238 ACCEPT_EULA : Y
239239 SA_PASSWORD : YourStrong@Passw0rd
240240 MSSQL_PID : Developer
241241 options : >-
242- --health-cmd "/opt/mssql-tools /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1'"
242+ --health-cmd "/opt/mssql-tools18 /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1' -No "
243243 --health-interval 10s
244244 --health-timeout 5s
245245 --health-retries 10
@@ -252,12 +252,13 @@ jobs:
252252
253253 - name : Wait for SQL Server
254254 run : |
255+ sudo apt-get update && sudo apt-get install -y mssql-tools18
255256 for i in {1..30}; do
256- /opt/mssql-tools /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1' && break
257+ /opt/mssql-tools18 /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1' -No && break
257258 echo "Waiting for SQL Server..."
258259 sleep 2
259260 done
260- /opt/mssql-tools /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE testdb"
261+ /opt/mssql-tools18 /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE testdb" -No
261262
262263 - name : Create test schema file
263264 run : |
Original file line number Diff line number Diff line change @@ -109,13 +109,13 @@ jobs:
109109
110110 services :
111111 sqlserver :
112- image : mcr.microsoft.com/mssql/server:2019-CU32-ubuntu-20.04
112+ image : mcr.microsoft.com/mssql/server:2022-latest
113113 env :
114114 ACCEPT_EULA : Y
115115 SA_PASSWORD : YourStrong@Passw0rd
116116 MSSQL_PID : Developer
117117 options : >-
118- --health-cmd "/opt/mssql-tools /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1'"
118+ --health-cmd "/opt/mssql-tools18 /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1' -No "
119119 --health-interval 10s
120120 --health-timeout 5s
121121 --health-retries 10
@@ -130,12 +130,13 @@ jobs:
130130
131131 - name : Wait for SQL Server
132132 run : |
133+ sudo apt-get update && sudo apt-get install -y mssql-tools18
133134 for i in {1..30}; do
134- /opt/mssql-tools /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1' && break
135+ /opt/mssql-tools18 /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1' -No && break
135136 echo "Waiting for SQL Server..."
136137 sleep 2
137138 done
138- /opt/mssql-tools /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE testdb"
139+ /opt/mssql-tools18 /bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE testdb" -No
139140
140141 - name : Preview MSSQL schema changes
141142 uses : ./
You can’t perform that action at this time.
0 commit comments