use powershell command

This commit is contained in:
Maycon Santos
2023-04-07 19:04:25 +02:00
parent 71e81533bc
commit a7574907ae

View File

@@ -17,23 +17,13 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
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
uses: carlosperate/download-file-action@v2
id: download-wintun
@@ -59,6 +49,6 @@ jobs:
- name: Decompressing PSTools files
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
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 }}\..."