Skip to content

Commit 22bf6ae

Browse files
committed
Adding pipeline for PRs.
1 parent 7a04393 commit 22bf6ae

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/config.yml

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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PKG ?=github.com/commitdev/zero
44
BUILD_ARGS=-v -ldflags=all="-X ${PKG}/cmd.appVersion=${VERSION} -X ${PKG}/cmd.appBuild=${BUILD}"
55

66
check:
7-
go test ./...
7+
go test -v $(go list -f '{{.Dir}}' ./... | grep -v /tmp/)
88

99
fmt:
1010
go fmt ./...

go.mod

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

0 commit comments

Comments
 (0)