diff --git a/.github/workflows/golang-test-windows.yml b/.github/workflows/golang-test-windows.yml index 2febc2ee8..2bfd39e0b 100644 --- a/.github/workflows/golang-test-windows.yml +++ b/.github/workflows/golang-test-windows.yml @@ -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 }}\... \ No newline at end of file + run: ${{ env.downloadPath }}\PsExec64.exe -accepteula -s powershell.exe -command "go test -timeout 5m -p 1 ${{ github.workspace }}\..." \ No newline at end of file