feat: test gitea actions with a real build!
All checks were successful
Build and test / Build (push) Successful in 2m10s

This commit is contained in:
Muyao CHEN
2024-10-08 23:22:00 +02:00
parent cc505e5a74
commit 8e73dc5f0b
5 changed files with 117 additions and 5 deletions

View File

@ -29,7 +29,7 @@ GO_LDFLAGS += \
# ==============================================================================
.PHONY: all
all: add-copyright format build
web: web-all
# ==============================================================================
.PHONY: build
@ -45,7 +45,7 @@ format: # format code.
.PHONY: add-copyright
add-copyright: # add license to file headers.
@addlicense -v -f $(ROOT_DIR)/LICENSE $(ROOT_DIR) --skip-files=database.yml --skip-dirs=$(OUTPUT_DIR),deployment,migrations,configs,sqlc
@addlicense -v -f $(ROOT_DIR)/LICENSE $(ROOT_DIR) --skip-files=database.yml --skip-dirs=$(OUTPUT_DIR),deployment,migrations,configs,sqlc,web
.PHONY: swagger
swagger: # Run swagger.
@ -55,6 +55,22 @@ swagger: # Run swagger.
tidy: # Handle packkages.
@go mod tidy
.PHONY: test
test:
@go test ./...
.PHONY: clean
clean: # Clean up.
@-rm -vrf $(OUTPUT_DIR)
.PHONY: web-build
web-build:
$(MAKE) -C web build
.PHONY: web-test
web-test:
$(MAKE) -C web test
.PHONY: web-all
web-all:
$(MAKE) -C web all