diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c82217c..b527a31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ name: build on: + push: + branches: + - master pull_request: branches: - '*' diff --git a/Makefile b/Makefile index cea4c08..7f8c1f9 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ release: ## goreleaser --snapshot --skip-publish --rm-dist diff: ## git diff $(call print-target) git diff --exit-code - test -z "`git status --porcelain | tee /dev/tty`" + test -z "`git status --porcelain`" || (git status --porcelain && exit 1) .PHONY: docker docker: ## run in golang container, example: make docker run="make all"