Skip to content

Commit b1c31ef

Browse files
author
Janne Rönkkö
committed
Do not require sqlcmd to be installed on the GHA runner when setting up e2e environment
1 parent 70ddf79 commit b1c31ef

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

github-actions/setup-e2e-environment/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,15 @@ runs:
154154
SA_PASSWORD: "P@ssw0rd"
155155
with:
156156
command:
157-
'sqlcmd -S 127.0.0.1 -U sa -P "$SA_PASSWORD" -d master -Q "SELECT
158-
''OK'';"'
157+
'docker exec
158+
jore4-mssqltestdb-base
159+
/opt/mssql-tools18/bin/sqlcmd
160+
-C
161+
-S 127.0.0.1
162+
-U sa
163+
-P "$SA_PASSWORD"
164+
-d master
165+
-Q "SELECT ''OK'';"'
159166
# it takes a while for the database to start
160167
retries: 50
161168

0 commit comments

Comments
 (0)