Skip to content

Commit

Permalink
Run unit tests on every GitHub build
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Jan 29, 2020
1 parent 1e271bd commit d62b6e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ jobs:
run: go build
env:
GOPATH: ${{ runner.workspace }}
- name: Test
run: make test
env:
GOPATH: ${{ runner.workspace }}
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.PHONY: build release test

build:
go build -o doppler main.go

Expand All @@ -6,5 +8,9 @@ release:
doppler run -- ./scripts/release.sh
doppler run -- ./scripts/post-release.sh

test:
go test ./pkg/... -v

test-release:
goreleaser release --snapshot --skip-publish --skip-sign --rm-dist

0 comments on commit d62b6e0

Please sign in to comment.