* cleanup

* cleanup go mod

* Remove doc generation

* add no integration test

* fix broken test

* rename workflow
This commit is contained in:
Asim Aslam
2021-05-17 13:01:13 +01:00
committed by GitHub
parent 0afdc8a369
commit cecabe336f
147 changed files with 8 additions and 10373 deletions

View File

@@ -1,27 +0,0 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v3/cmd/protoc-gen-micro
.PHONY: proto
proto:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/sentiment.proto
.PHONY: docs
docs:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/sentiment.proto
@redoc-cli bundle api-sentiment.json
.PHONY: build
build:
go build -o sentiment *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t sentiment:latest