From fb5f21f1f3856845082f939128d25bd4532b8478 Mon Sep 17 00:00:00 2001 From: Adphi Date: Mon, 12 Sep 2022 11:47:11 +0200 Subject: [PATCH] actions: run tests only if go files or templates changed Signed-off-by: Adphi --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ea1e564..ce2e8b8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,7 +43,7 @@ jobs: ${{ runner.os }}-tests- - name: Run tests - run: make tests + run: git --no-pager diff --exit-code HEAD~1 HEAD **/**.go templates/ || make tests docs-up-to-date: name: Docs up to date