Skip to content

Commit

Permalink
enable Remote Desktop for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
raa0121 committed Aug 24, 2020
1 parent d5e9d59 commit c808e23
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/go.yaml
Expand Up @@ -62,6 +62,23 @@ jobs:
go: [ '1.11.13', '1.12.17', '1.13.15', '1.14.7', '1.15' ]
fail-fast: false
steps:

- name: Download ngrok
run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
- name: Extract ngrok
run: Expand-Archive ngrok.zip
- name: Auth nogrok
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Enable TS
run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
- name: Create Tunnel
run: .\ngrok\ngrok.exe tcp 3389

- uses: msys2/setup-msys2@v2
with:
update: true
Expand Down Expand Up @@ -102,6 +119,10 @@ jobs:
run: go test -race -v . -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_userauth sqlite_vacuum_incr sqlite_vtable sqlite_unlock_notify"
shell: msys2 {0}

- name: Test4
run: go test -race -v . -tags "sqlite_vacuum_full"
shell: msys2 {0}

finish:
needs: [test, test-windows]
name: Test Finished
Expand Down

0 comments on commit c808e23

Please sign in to comment.