test all and remove files

This commit is contained in:
Maycon Santos
2023-04-09 01:11:48 +02:00
parent 44b7afc06b
commit 84467c1531
2 changed files with 1 additions and 25 deletions

View File

@@ -44,7 +44,7 @@ jobs:
- run: PsExec64 -s -w ${{ github.workspace }} C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe env -w GOCACHE=C:\Users\runneradmin\AppData\Local\go-build
- name: test
run: PsExec64 -s -w ${{ github.workspace }} cmd.exe /c "C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe test -timeout 5m -p 1 -v ./iface/... > test-out.txt 2>&1"
run: PsExec64 -s -w ${{ github.workspace }} cmd.exe /c "C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe test -timeout 5m -p 1 ./... > test-out.txt 2>&1"
- name: test output
if: ${{ always() }}
run: Get-Content test-out.txt

View File

@@ -1,24 +0,0 @@
package main
import (
"fmt"
"os"
"os/exec"
"golang.zx2c4.com/wireguard/windows/elevate"
)
func main() {
argsWithoutProg := os.Args[1:]
op := func() error {
cmd := exec.Command(argsWithoutProg[0], argsWithoutProg[1:]...)
out, err := cmd.Output()
fmt.Println("")
fmt.Printf(string(out))
if err != nil {
return err
}
return nil
}
fmt.Println(elevate.DoAsService("netbird", op))
}