Skip to content

Commit

Permalink
Using Golang action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Direside committed Jun 12, 2020
1 parent 22bf6ae commit 69c1f7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/config.yml
@@ -1,7 +1,6 @@


on:
push:
branches:
- 158-run-tests-github-actions
pull_request:
branches:
- master
Expand All @@ -11,7 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.12
- name: Run Go Tests
uses: docker://golang:1.12
run: |
make deps
make check
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -3,6 +3,9 @@ BUILD ?=$(shell git rev-parse --short HEAD)
PKG ?=github.com/commitdev/zero
BUILD_ARGS=-v -ldflags=all="-X ${PKG}/cmd.appVersion=${VERSION} -X ${PKG}/cmd.appBuild=${BUILD}"

deps:
go mod download

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

Expand Down

0 comments on commit 69c1f7e

Please sign in to comment.