From 26244b00d51a5cede673692de9247e9fa99ad42a Mon Sep 17 00:00:00 2001 From: Carl Montanari Date: Thu, 22 Feb 2024 08:29:08 -0800 Subject: [PATCH] chore: hopefully nice check for mod tidiness --- .github/workflows/lint.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 93a6588c..abe64767 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -22,6 +22,10 @@ jobs: with: go-version: ${{ env.GO_VERSION }} + - name: ensure go mod is tidy + run: | + git diff --exit-code --name-only go.mod go.sum 2>&1 + - name: install go lint tools run: | go install mvdan.cc/gofumpt@${{ vars.GOFUMPT_VERSION }}