diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78a2cf5..98d3937 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,5 +25,11 @@ jobs: - name: Get dependencies run: go mod download + - name: go fmt + run: | + go fmt + git diff --exit-code || \ + (echo; echo "Unexpected difference. Run 'go fmt' command and commit."; exit 1) + - name: Run unit tests run: go test -v -cover ./...