Skip to content

Commit c2112e2

Browse files
committed
ci: run templ generate during build/lint
Signed-off-by: Sumner Evans <me@sumnerevans.com>
1 parent 668a495 commit c2112e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
run: |
2222
go install golang.org/x/tools/cmd/goimports@latest
2323
go install honnef.co/go/tools/cmd/staticcheck@latest
24+
go install github.com/a-h/templ/cmd/templ@latest
2425
export PATH="$HOME/go/bin:$PATH"
2526
27+
- name: Run templ
28+
run: templ generate
29+
2630
- name: Run pre-commit
2731
uses: pre-commit/action@v3.0.1
2832

@@ -38,6 +42,12 @@ jobs:
3842
with:
3943
go-version-file: "go.mod"
4044

45+
- name: templ generate
46+
run: |
47+
go install github.com/a-h/templ/cmd/templ@latest
48+
export PATH="$HOME/go/bin:$PATH"
49+
templ generate
50+
4151
- run: go build ./cmd/mineshspc
4252

4353
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)