From 7a5883d40488f1c0f3bc679a09a9da462660c3a6 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Mon, 31 Aug 2020 15:56:40 +0200 Subject: [PATCH] circleci: Add `make formatcheck` Signed-off-by: InsanePrawn --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ef4017b..f8a60a8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -60,6 +60,15 @@ jobs: - run: make zrepl-bin - run: make vet + - run: + shell: /bin/bash + command: | + needformat="$(make formatcheck)" + if [ -n "$needformat" ]; then + echo "$needformat" + exit 1 + fi + exit 0 - run: make lint - run: make release - run: make test-go