mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-20 17:26:40 +00:00
use powershell command
This commit is contained in:
18
.github/workflows/golang-test-windows.yml
vendored
18
.github/workflows/golang-test-windows.yml
vendored
@@ -17,23 +17,13 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.19.x
|
go-version: 1.19.x
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
%LocalAppData%\go-build
|
|
||||||
~\go\pkg\mod
|
|
||||||
~\AppData\Local\go-build
|
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-
|
|
||||||
|
|
||||||
- name: Download wintun
|
- name: Download wintun
|
||||||
uses: carlosperate/download-file-action@v2
|
uses: carlosperate/download-file-action@v2
|
||||||
id: download-wintun
|
id: download-wintun
|
||||||
@@ -59,6 +49,6 @@ jobs:
|
|||||||
- name: Decompressing PSTools files
|
- name: Decompressing PSTools files
|
||||||
run: tar -zvxf "${{ steps.download-pstools.outputs.file-path }}" -C ${{ env.downloadPath }}
|
run: tar -zvxf "${{ steps.download-pstools.outputs.file-path }}" -C ${{ env.downloadPath }}
|
||||||
|
|
||||||
- run: ${{ env.downloadPath }}\PsExec64.exe -accepteula -s dir ${{ github.workspace }}
|
- run: ${{ env.downloadPath }}\PsExec64.exe -accepteula -s powershell.exe -command "dir ${{ github.workspace }}"
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ${{ env.downloadPath }}\PsExec64.exe -accepteula -s go test -timeout 5m -p 1 ${{ github.workspace }}\...
|
run: ${{ env.downloadPath }}\PsExec64.exe -accepteula -s powershell.exe -command "go test -timeout 5m -p 1 ${{ github.workspace }}\..."
|
||||||
Reference in New Issue
Block a user