RUNif[$(go mod tidy -v 2>&1| grep -c unused) !=0];thenecho"Unused modules, please run 'go mod tidy'";exit 1;fi
RUN go fmt ./...
RUN go vet ./...
RUNCGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt.tmp -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...