From bdb354305381d24cc66efbd0ace2b7dc36c24324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Lipt=C3=A1k?= Date: Fri, 1 Mar 2019 01:59:36 -0500 Subject: [PATCH] Add gofmt to CircleCI (#107) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gábor Lipták --- .circleci/config.yml | 4 ++++ ct/cmd/lint.go | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6dea230..49ae289 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,6 +27,10 @@ jobs: rm -rf goreleaser_Linux_x86_64.tar.gz curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - checkout + - run: + name: gofmt + command: | + gofmt -w -s . && git diff --exit-code - run: name: Build command: | diff --git a/ct/cmd/lint.go b/ct/cmd/lint.go index 625515e..ded1e67 100644 --- a/ct/cmd/lint.go +++ b/ct/cmd/lint.go @@ -95,4 +95,3 @@ func lint(cmd *cobra.Command, args []string) { os.Exit(1) } } -