mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-06 20:32:06 -05:00
Bumps [github.com/testcontainers/testcontainers-go/modules/opensearch](https://github.com/testcontainers/testcontainers-go) from 0.38.0 to 0.39.0. - [Release notes](https://github.com/testcontainers/testcontainers-go/releases) - [Commits](https://github.com/testcontainers/testcontainers-go/compare/v0.38.0...v0.39.0) --- updated-dependencies: - dependency-name: github.com/testcontainers/testcontainers-go/modules/opensearch dependency-version: 0.39.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
66 lines
1.3 KiB
Makefile
66 lines
1.3 KiB
Makefile
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
GOBIN= $(GOPATH)/bin
|
|
|
|
define go_install
|
|
go install $(1)
|
|
endef
|
|
|
|
$(GOBIN)/golangci-lint:
|
|
$(call go_install,github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.2)
|
|
|
|
$(GOBIN)/gotestsum:
|
|
$(call go_install,gotest.tools/gotestsum@latest)
|
|
|
|
$(GOBIN)/mockery:
|
|
$(call go_install,github.com/vektra/mockery/v2@v2.53.4)
|
|
|
|
.PHONY: install
|
|
install: $(GOBIN)/golangci-lint $(GOBIN)/gotestsum $(GOBIN)/mockery
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm $(GOBIN)/golangci-lint
|
|
rm $(GOBIN)/gotestsum
|
|
rm $(GOBIN)/mockery
|
|
|
|
.PHONY: dependencies-scan
|
|
dependencies-scan:
|
|
@echo ">> Scanning dependencies in $(CURDIR)..."
|
|
go list -json -m all | docker run --rm -i sonatypecommunity/nancy:latest sleuth --skip-update-check
|
|
|
|
.PHONY: lint
|
|
lint: $(GOBIN)/golangci-lint
|
|
golangci-lint run --verbose -c $(ROOT_DIR)/.golangci.yml --fix
|
|
|
|
.PHONY: generate
|
|
generate: $(GOBIN)/mockery
|
|
go generate ./...
|
|
|
|
.PHONY: test-%
|
|
test-%: $(GOBIN)/gotestsum
|
|
@echo "Running $* tests..."
|
|
gotestsum \
|
|
--format short-verbose \
|
|
--rerun-fails=5 \
|
|
--packages="./..." \
|
|
--junitfile TEST-unit.xml \
|
|
-- \
|
|
-v \
|
|
-coverprofile=coverage.out \
|
|
-timeout=30m \
|
|
-race
|
|
|
|
.PHONY: tools
|
|
tools:
|
|
go mod download
|
|
|
|
.PHONY: test-tools
|
|
test-tools: $(GOBIN)/gotestsum
|
|
|
|
.PHONY: tidy
|
|
tidy:
|
|
go mod tidy
|
|
|
|
.PHONY: pre-commit
|
|
pre-commit: generate tidy lint
|