Skip to content

Commit c33dc80

Browse files
committed
create db
1 parent 3483031 commit c33dc80

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ jobs:
3030
with:
3131
dotnet-version: |
3232
9.0.x
33+
- name: Install SQLCMD tools
34+
run: |
35+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
36+
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
37+
sudo apt-get update
38+
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
39+
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
40+
source ~/.bashrc
41+
- name: Create database
42+
run: |
43+
sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"
3344
- name: Restore dependencies
3445
run: |
3546
dotnet restore Migrator.slnx

0 commit comments

Comments
 (0)