Skip to content

Commit

Permalink
Adding pipeline for PRs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Direside committed Jun 11, 2020
1 parent 7a04393 commit 22bf6ae
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/config.yml
@@ -0,0 +1,17 @@
on:
push:
branches:
- 158-run-tests-github-actions
pull_request:
branches:
- master

jobs:
unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Go Tests
uses: docker://golang:1.12
run: |
make check
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -4,7 +4,7 @@ PKG ?=github.com/commitdev/zero
BUILD_ARGS=-v -ldflags=all="-X ${PKG}/cmd.appVersion=${VERSION} -X ${PKG}/cmd.appBuild=${BUILD}"

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

fmt:
go fmt ./...
Expand Down
1 change: 1 addition & 0 deletions go.mod
Expand Up @@ -8,6 +8,7 @@ require (
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 // indirect
github.com/coreos/go-semver v0.2.0
github.com/google/go-cmp v0.3.0
github.com/google/uuid v1.1.1
github.com/gorilla/handlers v1.4.2
github.com/gorilla/mux v1.7.3
Expand Down

0 comments on commit 22bf6ae

Please sign in to comment.