Skip to content

Commit

Permalink
Skip linting on Go tip (jaegertracing#4338)
Browse files Browse the repository at this point in the history
golangci-lint doesn't seem to like running against Go tip:
https://github.com/jaegertracing/jaeger/actions/runs/4517523436/jobs/7956780871#step:7:5416

The errors are actually invalid, since `typecheck` is not a linter, it
flags compile errors, but unit tests run fine.

Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro authored Mar 25, 2023
1 parent 17f34b7 commit 4f231b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,14 @@ 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 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 4f231b6

Please sign in to comment.