From d0c6cb32037d8707e9af8da96c8c6fc410027554 Mon Sep 17 00:00:00 2001 From: Ajitem Sahasrabuddhe Date: Sat, 25 Jan 2020 23:24:15 +0530 Subject: [PATCH] add gofmt check to actions workflow --- .github/workflows/cli.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index a8ee5bb..ea27f07 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -38,6 +38,14 @@ jobs: with: ref: ${{ github.ref }} + - name: GOFMT Check + run: | + if [ -z $(gofmt -l .) ]; then + exit 0 + else + exit 1 + fi + - name: Run Tests run: | go run build.go vet