Skip to content

Commit

Permalink
ci: run templ generate during build/lint
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <me@sumnerevans.com>
  • Loading branch information
sumnerevans committed May 25, 2024
1 parent 668a495 commit c2112e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit c2112e2

Please sign in to comment.