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: |