Replace html/template with a-h/templ #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2024 Risk.Ident GmbH <[email protected]> | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
name: templ | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
templ: | |
runs-on: ubuntu-latest | |
name: Run templ generate | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Install templ | |
run: go install github.com/a-h/templ/cmd/templ@latest | |
- name: Run templ | |
run: templ generate | |
- name: Fail on git diff | |
run: git diff --exit-code |