generated from ConduitIO/conduit-connector-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: Bump golangci/golangci-lint-action from 4 to 5 (#48)
* .github: Bump golangci/golangci-lint-action from 4 to 5 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v4...v5) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * take golangci-lint version from go.mod, update go to 1.22 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lovro Mažgon <[email protected]>
- Loading branch information
1 parent
0d6a84f
commit 6b2c3e6
Showing
5 changed files
with
993 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
.PHONY: build test generate download install-tools | ||
|
||
VERSION=$(shell git describe --tags --dirty --always) | ||
|
||
.PHONY: build | ||
build: | ||
go build -ldflags "-X 'github.com/conduitio-labs/conduit-connector-databricks.version=${VERSION}'" -o conduit-connector-databricks cmd/connector/main.go | ||
|
||
.PHONY: test | ||
test: | ||
go test $(GOTEST_FLAGS) -race ./... | ||
|
||
.PHONY: generate | ||
generate: | ||
go generate ./... | ||
|
||
download: | ||
@echo Download go.mod dependencies | ||
@go mod download | ||
.PHONY: lint | ||
lint: | ||
golangci-lint run | ||
|
||
install-tools: download | ||
.PHONY: install-tools | ||
install-tools: | ||
@echo Installing tools from tools.go | ||
@go list -e -f '{{ join .Imports "\n" }}' tools.go | xargs -tI % go install % | ||
@go list -e -f '{{ join .Imports "\n" }}' tools.go | xargs -I % go list -f "%@{{.Module.Version}}" % | xargs -tI % go install % | ||
@go mod tidy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.