Skip to content

Commit c76984c

Browse files
authored
Merge pull request #7 from jacobbednarz/ci
CI foundations
2 parents 4a8bc0c + e7d8ee9 commit c76984c

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 ./...

cmd/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)