Skip to content

Commit

Permalink
Added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
applejag committed Mar 27, 2024
1 parent b496f66 commit 9cb5f8e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/go-templ.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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

0 comments on commit 9cb5f8e

Please sign in to comment.