Skip to content

Commit 882aad0

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 882aad0

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,17 @@ 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 compose
158+
-f ${{ github.workspace }}/docker/docker-compose.yml ${{ inputs.custom_docker_compose != '' && format('-f {0}', inputs.custom_docker_compose) || '' }}
159+
exec
160+
jore4-mssqltestdb
161+
/opt/mssql-tools18/bin/sqlcmd
162+
-C
163+
-S 127.0.0.1
164+
-U sa
165+
-P "$SA_PASSWORD"
166+
-d master
167+
-Q "SELECT ''OK'';"'
159168
# it takes a while for the database to start
160169
retries: 50
161170

0 commit comments

Comments
 (0)