File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -128,17 +128,10 @@ jobs:
128128 with :
129129 fetch-depth : 0
130130
131- - name : Setup MSSQL database
131+ - name : Create MSSQL database
132132 run : |
133- # Install sqlcmd tools
134- sudo apt-get update && sudo apt-get install -y curl gnupg
135- curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
136- curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
137- sudo apt-get update
138- sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18
139-
140- # Create the test database
141- /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P "Passw0rd" -Q "CREATE DATABASE testdb;" -C
133+ docker exec $(docker ps -q -f "ancestor=mcr.microsoft.com/mssql/server:2022-latest") \
134+ /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P "Passw0rd" -Q "CREATE DATABASE testdb;" -C
142135
143136 - name : Preview MSSQL schema changes
144137 uses : ./
You can’t perform that action at this time.
0 commit comments