From 7c65a4dbc0ff2ee95e817971a8558f691139c2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 19 May 2026 16:30:24 +0200 Subject: [PATCH] ci: Check embedded template formatting with gotmplfmt --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b4a1cd43..fabf06820 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,6 +62,8 @@ jobs: python-version: "3.x" - name: Install Mage run: go install github.com/magefile/mage@v1.15.0 + - name: Install gotmplfmt + run: go install github.com/gohugoio/gotmplfmt@latest - name: Install docutils run: | pip install docutils @@ -108,6 +110,9 @@ jobs: - if: matrix.os == 'ubuntu-latest' name: Install staticcheck run: go install honnef.co/go/tools/cmd/staticcheck@latest + - if: matrix.os == 'ubuntu-latest' + name: Check embedded go template formatting + run: "diff <(gotmplfmt -d tpl/tplimpl/embedded/templates) <(printf '')" - if: matrix.os == 'ubuntu-latest' name: Run staticcheck run: |