File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ on : [push, pull_request]
2+ name : Test
3+ env :
4+ GOPROXY : " https://proxy.golang.org"
5+ jobs :
6+ test :
7+ strategy :
8+ matrix :
9+ go-version : [1.14.x, 1.15.x]
10+ os : [ubuntu-latest, macos-latest, windows-latest]
11+ runs-on : ${{ matrix.os }}
12+ steps :
13+ - name : Install Go
14+ uses : actions/setup-go@v1
15+ with :
16+ go-version : ${{ matrix.go-version }}
17+ - name : Checkout code
18+ uses : actions/checkout@v2
19+ - name : Format
20+ run : gofmt -d .
21+ - name : Lint
22+ if : matrix.os != 'windows-latest'
23+ run : |
24+ go get -v -u golang.org/x/lint/golint
25+ $(go env GOPATH)/bin/golint -set_exit_status .
26+ - name : Vet
27+ run : go vet
28+ - name : Test
29+ run : go test -v -race ./...
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ var execCmd = &cobra.Command{
102102 executable := args [0 ]
103103 pathtoExec , err := exec .LookPath (executable )
104104 if err != nil {
105- log .Fatalf ("couldn't find the executable '%s': %w " , pathtoExec , err )
105+ log .Fatalf ("couldn't find the executable '%s': %s " , pathtoExec , err . Error () )
106106 }
107107
108108 log .Debugf ("found executable %s" , pathtoExec )
You can’t perform that action at this time.
0 commit comments