feat: test gitea actions with a real build!
All checks were successful
Build and test / Build (push) Successful in 2m10s
All checks were successful
Build and test / Build (push) Successful in 2m10s
This commit is contained in:
20
Makefile
20
Makefile
@ -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
|
||||
|
Reference in New Issue
Block a user