File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 60
60
env :
61
61
FORCE_ENCRYPTION : ${{ matrix.force-encryption }}
62
62
SA_PASSWORD : " bHuZH81%cGC6"
63
+ VERSION : ${{ matrix.version }}
Original file line number Diff line number Diff line change 9
9
Write-Output " Checking if SQL Server is available ..."
10
10
& sqlcmd - S 127.0 .0.1 - U sa - P $env: SA_PASSWORD - Q " SELECT 1"
11
11
12
+ Write-Output " Check if requested version was installed ..."
13
+ $sqlcmdOutput = & sqlcmd - S 127.0 .0.1 - U sa - P $env: SA_PASSWORD - Q " SELECT @@VERSION" - h -1
14
+ $result = $sqlcmdOutput | Select-String - Pattern " Microsoft SQL Server (\d+)"
15
+
16
+ if ($result.Matches.Groups [1 ].Value -Eq $env: VERSION ) {
17
+ Write-Output " Installled version matches expected version $env: VERSION "
18
+ }
19
+ else {
20
+ Write-Error " Installed version does not match expected version $env: VERSION "
21
+ Write-Error " sqlcmd output: $sqlcmdOutput "
22
+ exit 1
23
+ }
24
+
12
25
Write-Output " Check status of connection encryption ..."
13
26
14
27
$sqlQuery = @"
You can’t perform that action at this time.
0 commit comments