We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 979e9a4 + 6e302ed commit 6f1b217Copy full SHA for 6f1b217
.github/workflows/config.yml
@@ -0,0 +1,19 @@
1
+on:
2
+ pull_request:
3
+ branches:
4
+ - master
5
+
6
+jobs:
7
+ unit_test:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - uses: actions/setup-go@v2
12
+ with:
13
+ go-version: 1.12
14
+ - name: Download Go Packages
15
+ run: |
16
+ make deps
17
+ - name: Run Go Tests
18
19
+ make check
Makefile
@@ -3,8 +3,11 @@ 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 ./...
+ go list -f '{{.Dir}}' ./... | grep -v /tmp/ | xargs go test -v
fmt:
go fmt ./...
0 commit comments