There was an error while loading. Please reload this page.
1 parent 945f696 commit d25545bCopy full SHA for d25545b
1 file changed
.github/workflows/run-tests.yaml
@@ -46,6 +46,16 @@ jobs:
46
sudo apt-get install --yes freetds-bin
47
echo "SELECT @@VERSION" | tsql -H localhost -p 1433 -U sa -P 'YourStrong!Passw0rd'
48
if: ${{ runner.os == 'Linux' }}
49
+ - name: Enable TCP for MSSQL
50
+ run: |
51
+ [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SqlWmiManagement')
52
+ $wmi = New-Object 'Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer' localhost
53
+ $tcp = $wmi.ServerInstances['MSSQLSERVER'].ServerProtocols['Tcp']
54
+ $tcp.IsEnabled = $true
55
+ $tcp.Alter()
56
+ Restart-Service -Name MSSQLSERVER -Force
57
+ shell: powershell
58
+ if: ${{ runner.os == 'Windows' }}
59
60
# Setup Python/pip
61
- uses: actions/checkout@v2
0 commit comments