From c90adb0cfda954e85e01a363a6de5704cac81ce3 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 20 Nov 2023 08:56:33 +0200 Subject: [PATCH] ci: Check if working tree is dirty Signed-off-by: Stefan Prodan --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6b83402..c1060352 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ on: - '*' jobs: - goreleaser: + test: runs-on: ubuntu-latest permissions: contents: read @@ -31,3 +31,11 @@ jobs: run: | make tidy make test + - + name: Check if working tree is dirty + run: | + if [[ $(git diff --stat) != '' ]]; then + git diff + echo 'run make test and commit changes' + exit 1 + fi