Skip to content

Commit 51b8e7f

Browse files
authored
Update build.yml
1 parent c4067fa commit 51b8e7f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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

@@ -53,12 +54,9 @@ jobs:
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

0 commit comments

Comments
 (0)