chore(CI/CD): add golangci-lint for github actions

https://github.com/appleboy/gorush/issues/704

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2022-12-18 09:51:31 +08:00
parent fe402a578a
commit 577083639c
8 changed files with 129 additions and 35 deletions

View File

@@ -69,12 +69,6 @@ embedmd:
fi
embedmd -d *.md
lint:
@hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install github.com/mgechev/revive@v1.0.5; \
fi
revive -config .revive.toml ./... || exit 1
.PHONY: install
install: $(GOFILES)
$(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'