File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - 158-run-tests-github-actions
5+ pull_request :
6+ branches :
7+ - master
8+
9+ jobs :
10+ unit_test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Run Go Tests
15+ uses : docker://golang:1.12
16+ run : |
17+ make check
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ PKG ?=github.com/commitdev/zero
44BUILD_ARGS =-v -ldflags=all="-X ${PKG}/cmd.appVersion=${VERSION} -X ${PKG}/cmd.appBuild=${BUILD}"
55
66check :
7- go test . /...
7+ go test -v $( go list -f '{{.Dir}}' . /... | grep -v /tmp/ )
88
99fmt :
1010 go fmt ./...
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require (
88 github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
99 github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 // indirect
1010 github.com/coreos/go-semver v0.2.0
11+ github.com/google/go-cmp v0.3.0
1112 github.com/google/uuid v1.1.1
1213 github.com/gorilla/handlers v1.4.2
1314 github.com/gorilla/mux v1.7.3
You can’t perform that action at this time.
0 commit comments