diff options
author | sillyguodong <sillyguodong@noreply.gitea.io> | 2023-02-28 11:44:46 +0100 |
---|---|---|
committer | Jason Song <i@wolfogre.com> | 2023-02-28 11:44:46 +0100 |
commit | 552dbcdda9fce6e8de4af96e08a2cbc6d8182f27 (patch) | |
tree | 81415d6406cca956fedba3114d63b6a1cc0614f7 /Makefile | |
parent | update env var (diff) | |
download | forgejo-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-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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)' |