ci: Check embedded template formatting with gotmplfmt

This commit is contained in:
Bjørn Erik Pedersen
2026-05-19 16:30:24 +02:00
parent d31a9275c6
commit 7c65a4dbc0
+5
View File
@@ -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: |