From 849321ef25f9967d80709fc0f8ef274a1ebb8c80 Mon Sep 17 00:00:00 2001 From: garrettladley Date: Thu, 1 Feb 2024 01:32:00 -0500 Subject: [PATCH] ghwf debugging --- .github/workflows/backend.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 35ac52643..6f4b19b95 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -31,13 +31,12 @@ jobs: run: go install mvdan.cc/gofumpt@latest - name: Check code formatting run: | - gofumpt -l ./backend/ - # unformatted_files=$(gofumpt -l ./backend/ 2>/dev/null | grep ".go$") - # if [ -n "$unformatted_files" ]; then - # echo "Files not formatted:" - # echo "$unformatted_files" - # exit 1 - # fi + unformatted_files=$(gofumpt -l ./backend/) + if [ -n "$unformatted_files" ]; then + echo "Files not formatted:" + echo "$unformatted_files" + exit 1 + fi lint: name: Lint