Skip to content

Commit

Permalink
changed order of build make file command + installer for templ in ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbITCybErSeC committed Jun 20, 2024
1 parent edd2b74 commit f28c72c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
with:
fetch-depth: 0

- name: Install swaggo
run: go install github.com/a-h/templ/cmd/templ@latest

- name: Setup node
uses: actions/setup-node@v4
with:
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: dev-server dev-tailwind dev-templ dev build-server build-tailwind build-templ build launch deploy
.PHONY: dev-server dev-tailwind dev-templ dev build-server build-tailwind build-templ build launch deploy clean

#-----------------------------------------------------
# DEV
Expand Down Expand Up @@ -41,7 +41,7 @@ dev-tailwind:
# BUILD
#-----------------------------------------------------

build: build-tailwind build-server build-templ
build: build-templ build-tailwind build-server

build-server:
@go build -o bin/server ./server/main.go
Expand All @@ -55,4 +55,8 @@ build-tailwind:
lint:
golangci-lint run --timeout 5m0s -v

clean:
find . -type f -name '*_templ.go' -exec rm -f {} ls **/*_templ.go


.DEFAULT_GOAL := dev

0 comments on commit f28c72c

Please sign in to comment.