Skip to content

Commit

Permalink
Merge branch 'main' into upgrade-sarama-v1.38.1
Browse files Browse the repository at this point in the history
  • Loading branch information
axfor authored Mar 25, 2023
2 parents 6d75d03 + 4f231b6 commit 46f6368
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-unit-tests-go-tip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ jobs:

- name: Run unit tests
run: make test-ci

- name: Lint
run: echo skip linting on Go tip
3 changes: 3 additions & 0 deletions .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ jobs:
flags: unittests
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}

- name: Lint
run: make lint
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SHELL := /bin/bash
JAEGER_IMPORT_PATH = github.com/jaegertracing/jaeger
STORAGE_PKGS = ./plugin/storage/integration/...
GO = go

include docker/Makefile

Expand Down Expand Up @@ -31,11 +32,11 @@ ifeq ($(UNAME), s390x)
else
RACE=-race
endif
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
GOOS ?= $(shell $(GO) env GOOS)
GOARCH ?= $(shell $(GO) env GOARCH)
GOCACHE=$(abspath .gocache)
GOBUILD=GOCACHE=$(GOCACHE) CGO_ENABLED=0 installsuffix=cgo go build -trimpath
GOTEST=GOCACHE=$(GOCACHE) go test -v $(RACE)
GOBUILD=GOCACHE=$(GOCACHE) CGO_ENABLED=0 installsuffix=cgo $(GO) build -trimpath
GOTEST=GOCACHE=$(GOCACHE) $(GO) test -v $(RACE)
GOFMT=gofmt
GOFUMPT=gofumpt
FMT_LOG=.fmt.log
Expand Down Expand Up @@ -392,15 +393,15 @@ draft-release:

.PHONY: install-tools
install-tools:
go install github.com/vektra/mockery/[email protected]
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
go install mvdan.cc/gofumpt@latest
$(GO) install github.com/vektra/mockery/[email protected]
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.1
$(GO) install mvdan.cc/gofumpt@latest

.PHONY: install-ci
install-ci: install-tools

.PHONY: test-ci
test-ci: build-examples cover lint
test-ci: build-examples cover

.PHONY: thrift
thrift: idl/thrift/jaeger.thrift thrift-image
Expand Down

0 comments on commit 46f6368

Please sign in to comment.