summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsillyguodong <sillyguodong@noreply.gitea.io>2023-02-28 11:44:46 +0100
committerJason Song <i@wolfogre.com>2023-02-28 11:44:46 +0100
commit552dbcdda9fce6e8de4af96e08a2cbc6d8182f27 (patch)
tree81415d6406cca956fedba3114d63b6a1cc0614f7 /Makefile
parentupdate env var (diff)
downloadforgejo-runner-552dbcdda9fce6e8de4af96e08a2cbc6d8182f27.tar.xz
forgejo-runner-552dbcdda9fce6e8de4af96e08a2cbc6d8182f27.zip
Add copyright header and gitea-vet (#29)
Add copyright header Co-authored-by: sillyguodong <gedong_1994@163.com> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/29 Reviewed-by: Jason Song <i@wolfogre.com> Reviewed-by: Zettat123 <zettat123@noreply.gitea.io> Co-authored-by: sillyguodong <sillyguodong@noreply.gitea.io> Co-committed-by: sillyguodong <sillyguodong@noreply.gitea.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d5a1805..bb395c4 100644
--- a/Makefile
+++ b/Makefile
@@ -71,9 +71,6 @@ fmt:
fi
$(GOFMT) -w $(GOFILES)
-vet:
- $(GO) vet ./...
-
.PHONY: fmt-check
fmt-check:
@hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
@@ -89,6 +86,12 @@ fmt-check:
test: fmt-check
@$(GO) test -v -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1
+.PHONY: vet
+vet:
+ @echo "Running go vet..."
+ @$(GO) build code.gitea.io/gitea-vet
+ @$(GO) vet -vettool=gitea-vet ./...
+
install: $(GOFILES)
$(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'