Enable action as CI to test/build/release (#26)

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/26
This commit is contained in:
Lunny Xiao
2023-02-24 23:30:09 +08:00
parent 410765b516
commit a4513405b5
4 changed files with 26 additions and 23 deletions

View File

@ -67,7 +67,7 @@ all: build
fmt:
@hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install -u mvdan.cc/gofumpt; \
$(GO) install mvdan.cc/gofumpt@latest; \
fi
$(GOFMT) -w $(GOFILES)
@ -77,7 +77,7 @@ vet:
.PHONY: fmt-check
fmt-check:
@hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install -u mvdan.cc/gofumpt; \
$(GO) install mvdan.cc/gofumpt@latest; \
fi
@diff=$$($(GOFMT) -d $(GOFILES)); \
if [ -n "$$diff" ]; then \