From 0e5bc8d9e823cc6636aa8d5a5b71e131674608b2 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Thu, 20 Nov 2025 18:26:59 +0100 Subject: [PATCH] chore(ci): add Go and templ setup to CI workflow This update enhances the CI workflow by adding steps to set up Go using the version specified in go.mod, add the Go bin directory to the PATH, and install the templ code generation tool. These additions ensure that Go-based tooling is available for subsequent CI steps. --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 306f26d..f5c84a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,17 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Add Go bin to PATH + run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + + - name: Install templ + run: go install github.com/a-h/templ/cmd/templ@v0.3.960 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3