Skip to content

Commit 1647d4d

Browse files
authored
refresh tsqlt on azure during ci (#241)
1 parent 8bb5dfe commit 1647d4d

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/azuresql-unit.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
env:
24-
SQLINSTANCE: "localhost"
25-
DATABASE: "tsqlt"
24+
SQLINSTANCE: "expresssql.database.windows.net"
25+
DATABASE: "expresssql"
2626
INSTALLER_FILE: "install_dba-multitool.sql"
2727
TSQLT_FILE: "run_tsqlt.sql"
2828

@@ -49,6 +49,16 @@ jobs:
4949
run: |
5050
New-Item -Path $Env:TSQLT_FILE -ItemType "File" -Value "EXEC tsqlt.RunAll;" -Force
5151
52+
- name: Install tSQLt
53+
uses: lowlydba/[email protected]
54+
with:
55+
sql-instance: ${{ env.SQLINSTANCE }}
56+
database: ${{ env.DATABASE }}
57+
user: ${{ secrets.AZURE_USERNAME }}
58+
password: ${{ secrets.AZURE_PASSWORD}}
59+
version: "latest"
60+
update: true
61+
5262
- name: Install multitool
5363
uses: azure/[email protected]
5464
with:

.github/workflows/sqlserver-unit.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ jobs:
5353
with:
5454
path: ""
5555
ref: ${{ github.head_ref }}
56-
57-
# - name: Install and cache PowerShell modules
58-
# uses: potatoqualitee/[email protected]
59-
# with:
60-
# modules-to-cache: dbatools
61-
# shell: powershell
6256

6357
- name: Install SQL Server
6458
continue-on-error: true
@@ -77,12 +71,12 @@ jobs:
7771
sa-password: L0wlydb4
7872

7973
- name: Install tSQLt
80-
uses: lowlydba/tsqlt-installer@v1
74+
uses: lowlydba/tsqlt-installer@v1.1.0
8175
with:
8276
sql-instance: ${{ env.SQLINSTANCE }}
8377
database: ${{ env.DATABASE }}
8478
version: "latest"
85-
create: true
79+
create-database: true
8680

8781
- name: Install multitool
8882
run: |

0 commit comments

Comments
 (0)