File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,12 @@ jobs:
3232 runs-on : ubuntu-latest
3333 needs : build
3434 services :
35- mssql :
36- image : mcr.microsoft.com/mssql/server:2022-latest
35+ sql-edge :
36+ image : mcr.microsoft.com/azure-sql-edge
37+ options : --cap-add SYS_PTRACE --name azuresqledge
3738 env :
3839 ACCEPT_EULA : Y
39- MSSQL_SA_PASSWORD : veryStrong123
40+ MSSQL_SA_PASSWORD : " veryStrong123"
4041 ports :
4142 - 1433:1433
4243
5354 run : |
5455 for i in {1..10}; do
5556 sleep $((11 - i))
56- if echo "SELECT 1" | /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P veryStrong123 &> /dev/null; then
57- echo "MSSQL is ready!"
58- break
59- fi
60- echo "Waiting for MSSQL to be ready..."
57+ nc -z localhost 1435 && echo "Azure SQL Edge is ready" && exit 0
6158 done
59+ echo "Azure SQL Edge failed to start" && exit 1
6260
6361 - name : Run Tests with MSSQL
6462 run : mvn test -pl core -am -Dspring.profiles.active=mssql
You can’t perform that action at this time.
0 commit comments