diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83ecb2b..56323a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,16 +8,19 @@ on: pull_request: jobs: - build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.23' + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.23" - - name: Build - run: go build -v ./... + - name: Install dependencies + run: go install github.com/a-h/templ/cmd/templ@latest + - name: Generate + run: go generate ./... + - name: Build + run: go build -v ./...