From c2112e2b79768bcf8934b21cb16062e77cb0a6b8 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Sat, 25 May 2024 00:18:38 -0600 Subject: [PATCH] ci: run templ generate during build/lint Signed-off-by: Sumner Evans --- .github/workflows/build.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8d6b4c2..7a8c024 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,8 +21,12 @@ jobs: run: | go install golang.org/x/tools/cmd/goimports@latest go install honnef.co/go/tools/cmd/staticcheck@latest + go install github.com/a-h/templ/cmd/templ@latest export PATH="$HOME/go/bin:$PATH" + - name: Run templ + run: templ generate + - name: Run pre-commit uses: pre-commit/action@v3.0.1 @@ -38,6 +42,12 @@ jobs: with: go-version-file: "go.mod" + - name: templ generate + run: | + go install github.com/a-h/templ/cmd/templ@latest + export PATH="$HOME/go/bin:$PATH" + templ generate + - run: go build ./cmd/mineshspc - uses: actions/upload-artifact@v4