From 35dd851483e4ed891e7b5c7552daf147fd199bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Garc=C3=ADa=20Crespo?= Date: Fri, 22 Sep 2023 09:13:26 +0000 Subject: [PATCH] Add go.work check --- .github/workflows/mod.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/mod.yml b/.github/workflows/mod.yml index 1038f11..e7f58ce 100644 --- a/.github/workflows/mod.yml +++ b/.github/workflows/mod.yml @@ -30,3 +30,13 @@ jobs: git diff go.sum exit 1 fi + if [ ! -z "$(git status --porcelain go.work)" ]; then + printf "go.work has modifications\n" + git diff go.work + exit 1 + fi + if [ ! -z "$(git status --porcelain go.work.sum)" ]; then + printf "go.work.sum has modifications\n" + git diff go.work.sum + exit 1 + fi